pulumi/cmd
Joe Duffy 578f18831e
Add commands to generate goodies (#1288)
This change adds two new (hidden) CLI commands:

* `gen-bash-completion`: This command generates a bash completion
  script for the CLI, storing it in the file specified by the 1st arg.
  This fixes pulumi/pulumi#1172.

* `gen-markdown`: This command generates a directory of Markdown files,
  one per command, documenting the CLI commands and their usage.

I originally did these as separate scripts that we can use in our
build processes, but it was actually even easier to make `pulumi` able
to generate them for itself.  The nice part about this is that we don't
even need to bundle additional assets in order to distribute e.g. the
bash completion scripts, we can simply tell people to run

    $ pulumi gen-bash-completion /etc/bash_completion.d/pulumi

This can also be used in our upcoming Brew installer.
2018-04-28 11:18:21 -07:00
..
archive.go Add commands to generate goodies (#1288) 2018-04-28 11:18:21 -07:00
cancel.go Fix a couple of typos. 2018-04-20 11:09:54 -07:00
config.go Remove some obsolete flags from pulumi config rm 2018-04-25 14:25:11 -07:00
config_test.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
destroy.go Add a hidden --no-interactive flag so that we can reduce interactive noise when running jenkins. (#1262) 2018-04-24 14:23:08 -07:00
gen_bash_completion.go Add commands to generate goodies (#1288) 2018-04-28 11:18:21 -07:00
gen_markdown.go Add commands to generate goodies (#1288) 2018-04-28 11:18:21 -07:00
history.go Introduce backend.StackReference 2018-04-18 04:54:02 -07:00
init.go Remove the need to pulumi init for the local backend 2018-04-18 04:53:49 -07:00
login.go Don't mention PPC unless needed in the CLI 2018-04-23 16:50:48 -04:00
logout.go Fix login/logout issue against non api.pulumi.com clouds 2018-04-27 15:41:50 -07:00
logs.go Minor CLI improvements 2018-04-25 16:52:31 -07:00
logs_test.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
new.go Extract a Pulumi API client. 2018-03-21 16:45:54 -07:00
plugin.go Snapshot management overhaul and refactor (#1273) 2018-04-25 17:20:08 -07:00
plugin_install.go Add a --verbose flag to plugin install (#1160) 2018-04-11 17:51:14 -07:00
plugin_ls.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
plugin_rm.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
preview.go Implement a refresh command 2018-04-18 10:57:16 -07:00
pulumi.go Add commands to generate goodies (#1288) 2018-04-28 11:18:21 -07:00
refresh.go Add a hidden --no-interactive flag so that we can reduce interactive noise when running jenkins. (#1262) 2018-04-24 14:23:08 -07:00
stack.go Don't mention PPC unless needed in the CLI 2018-04-23 16:50:48 -04:00
stack_export.go Run tests against managed stacks backend instead of FnF (#1092) 2018-04-02 21:34:54 -07:00
stack_graph.go Spruce up the stack graph command: 2018-02-22 17:31:45 -08:00
stack_import.go Address code review feedback 2018-04-20 01:31:14 -04:00
stack_init.go Address code review feedback 2018-04-20 02:34:10 -04:00
stack_ls.go Add a URL column to stack ls. 2018-04-25 21:17:46 -07:00
stack_output.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
stack_output_test.go Adjust stack output formating in the CLI 2018-02-16 12:25:25 -08:00
stack_rm.go Address code review feedback 2018-04-20 01:31:14 -04:00
stack_select.go Address code review feedback 2018-04-20 02:34:10 -04:00
update.go Add a hidden --no-interactive flag so that we can reduce interactive noise when running jenkins. (#1262) 2018-04-24 14:23:08 -07:00
util.go Revert adding HEAD commit info to update env (#1257) 2018-04-23 14:01:28 -07:00
version.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00