This PR adds the launch CLI command that performs push, deploy, and log (tailing logs).
While making a nice experience, the following changes were made:
Reusing CLI flags across CLI commands
Fixed usage text to notate [options] correctly (as a result of previous CLI upgrade)
Reuse of common CLI setup for push, deploy, log, launch into single AppAction
Setting up profile
Finding information about application, environment, and workspace
Discovering app provider
Indenting output of infrastructure configuration
❯ nullstone launch -h
NAME:
nullstone launch - Launch application (push, deploy, log)
USAGE:
nullstone launch [options] <app-name> <env-name>
OPTIONS:
--stack value The stack name where the app resides.
This is only required if multiple apps have the same 'app-name'.
--source value The source artifact to push.
app/container: This is the docker image to push. This follows the same syntax as 'docker push NAME[:TAG]'.
app/serverless: This is a .zip archive to push.
--version value Push the artifact with this version.
app/container: If specified, will push the docker image with version as the image tag. Otherwise, uses source tag.
app/serverless: This is required to upload the artifact.
--help, -h show help (default: false)
This PR adds the
launch
CLI command that performspush
,deploy
, andlog
(tailing logs).While making a nice experience, the following changes were made:
[options]
correctly (as a result of previous CLI upgrade)AppAction