Skip to content

Commit

Permalink
feat(cli): allow terraform-like command names
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed May 3, 2021
1 parent cad219f commit 3a3054a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/cdktf-cli/bin/cmds/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const config = readConfigSync();
class Command implements yargs.CommandModule {
public readonly command = 'deploy [stack] [OPTIONS]';
public readonly describe = 'Deploy the given stack';
public readonly aliases = ['apply'];

public readonly builder = (args: yargs.Argv) => args
.positional('stack', { desc: 'Deploy stack which matches the given id only. Required when more than one stack is present in the app', type: 'string' })
Expand Down
1 change: 1 addition & 0 deletions packages/cdktf-cli/bin/cmds/diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const config = readConfigSync();
class Command implements yargs.CommandModule {
public readonly command = 'diff [stack] [OPTIONS]';
public readonly describe = 'Perform a diff (terraform plan) for the given stack';
public readonly aliases = ['plan'];

public readonly builder = (args: yargs.Argv) => args
.positional('stack', { desc: 'Diff stack which matches the given id only. Required when more than one stack is present in the app', type: 'string' })
Expand Down

0 comments on commit 3a3054a

Please sign in to comment.