cupper-hugo-theme/exampleSite/content/patterns/coding/command-line.md
2019-01-31 18:19:20 -06:00

606 B

+++ title = "Command line" +++

Your pattern documentation may need to include commands for installing packages or using CLIs. Cupper offers the cmd shortcode for making code blocks look like terminal commands.

Here's how you write it:

{{}} {{<cmd>}} npm run start {{</cmd>}} {{}}

And here's how it looks:

{{}} npm run start {{}}

{{% warning %}} The cmd shortcode currently only supports single commands. If you want to show multiple, successive commands use separate cmd blocks. {{% /warning %}}