pulumi/cmd
Justin Van Patten c7985ed296
Support offline template descriptions (#1044)
Note: This is a minor issue that I didn't get to for M11 that isn't
required for M11 and would be fine merging for post-M11.

When you specify a template name explicitly (e.g.
`pulumi new typescript`), we'll try to download the template tarball
without first downloading the JSON list of available templates. The JSON
includes a description used when replacing the `${DESCRIPTION}` string
in template files. Since we didn't download the JSON, we won't have a
description, so we fallback to a default value (`"A Pulumi project."`).
This also happens when specifying `--offline` to use an existing
template under `~/.pulumi/templates`; we won't have a description for
the template, so we fallback to a default description. The fallback
value happens to be the same as the description for each of our current
templates, so noone will currently notice an issue.

For M11, I included initial support for a template manifest file where
the description (and any future metadata) could be stored, but didn't go
as far as actually reading the file.

This change makes it so the CLI actually reads the description from the
manifest file (if it exists), otherwise falling back to the default
value as is done currently. Some minor related cleanup is included in
this change.
2018-03-13 16:09:25 -07:00
..
config.go Change represention of config.Key 2018-03-08 10:52:25 -08:00
config_test.go Have MakeKey fail if `namespace` contains a colon 2018-03-08 11:52:48 -08:00
debug_cmds.go Rename package to project (#935) 2018-02-14 13:56:16 -08:00
destroy.go Emit richer events for resource steps 2018-03-09 13:11:42 -08:00
history.go Fix flaky update history test 2018-03-01 16:20:09 -08:00
init.go Argument validation for CLI commands 2017-11-29 16:10:53 -08:00
login.go Add a logout --all command (#673) 2017-12-08 12:14:14 -08:00
logout.go Make cloud authentication more intuitive (#738) 2017-12-16 07:49:41 -08:00
logs.go Fix two DST bugs in logs test (#1042) 2018-03-12 15:49:52 -07:00
logs_test.go Fix two DST bugs in logs test (#1042) 2018-03-12 15:49:52 -07:00
new.go Support offline template descriptions (#1044) 2018-03-13 16:09:25 -07:00
plugin.go Configure resource providers upon load. 2018-03-06 16:38:53 -08:00
plugin_install.go Add support for project plugins 2018-02-19 11:24:19 -08:00
plugin_ls.go Guard BirthTime checks with HasBirthTimes 2018-02-22 10:32:21 -08:00
plugin_rm.go Add support for project plugins 2018-02-19 11:24:19 -08:00
preview.go Emit richer events for resource steps 2018-03-09 13:11:42 -08:00
pulumi.go Adds a `pulumi new` command to scaffold a project (#1008) 2018-03-09 15:27:55 -08:00
stack.go Code review feedback: rework graph construction to be done eagerly and efficiently, gate under PULUMI_DEBUG_COMMANDS 2018-02-22 15:52:06 -08:00
stack_export.go Make some stack-related CLI improvements (#947) 2018-02-16 15:03:54 -08:00
stack_graph.go Spruce up the stack graph command: 2018-02-22 17:31:45 -08:00
stack_import.go Reintroduce untyped deployments (#996) 2018-03-03 12:12:54 -08:00
stack_init.go Change default of where stack is created (#971) 2018-02-26 11:00:16 -08:00
stack_ls.go Rename package to project (#935) 2018-02-14 13:56:16 -08:00
stack_output.go Make some stack-related CLI improvements (#947) 2018-02-16 15:03:54 -08:00
stack_output_test.go Adjust stack output formating in the CLI 2018-02-16 12:25:25 -08:00
stack_rm.go Rework configuration model 2018-02-28 17:30:50 -08:00
stack_select.go Make some stack-related CLI improvements (#947) 2018-02-16 15:03:54 -08:00
update.go Emit richer events for resource steps 2018-03-09 13:11:42 -08:00
upgrade_config.go Fix some unecessary branches to appease golint (#999) 2018-03-05 16:15:09 -08:00
util.go Make some stack-related CLI improvements (#947) 2018-02-16 15:03:54 -08:00
version.go Add a manifest to checkpoint files (#630) 2017-12-01 13:50:32 -08:00