-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): add deploy functionality (replicate original cli)
- Loading branch information
1 parent
67ffaeb
commit 3ae7102
Showing
17 changed files
with
1,116 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. | ||
PDX-License-Identifier: Apache-2.0 */ | ||
|
||
import { Flags } from "@oclif/core"; | ||
import { FlagInput } from "@oclif/core/lib/interfaces/parser"; | ||
|
||
export interface DeployCommandFlags { | ||
name: string; | ||
projen: boolean; | ||
profile?: string; | ||
appRegion?: string; | ||
llmRegion?: string; | ||
skipConfirmations: boolean; | ||
cdkCommand: string; | ||
cdkRequireApproval: string; | ||
build: boolean; | ||
saveExec: boolean; | ||
dryRun: boolean; | ||
replay: boolean; | ||
} | ||
|
||
export const deployCommandFlags: FlagInput<DeployCommandFlags> = { | ||
name: Flags.string({ | ||
description: "Application name", | ||
default: "Galileo", | ||
}), | ||
projen: Flags.boolean({ | ||
description: "Run projen to synth project", | ||
default: true, | ||
}), | ||
profile: Flags.string({ | ||
aliases: ["p"], | ||
description: | ||
"The profile set up for your AWS CLI (associated with your AWS account)", | ||
}), | ||
appRegion: Flags.string({ | ||
aliases: ["app-region"], | ||
description: "The region you want to deploy your application", | ||
required: false, | ||
}), | ||
llmRegion: Flags.string({ | ||
aliases: ["llm-region"], | ||
description: "The region you want to deploy/activate your LLM", | ||
required: false, | ||
}), | ||
skipConfirmations: Flags.boolean({ | ||
aliases: ["yes"], | ||
description: "Skip prompt confirmations (always yes)", | ||
default: false, | ||
}), | ||
cdkCommand: Flags.string({ | ||
aliases: ["cdk-cmd"], | ||
description: "CDK command to run", | ||
default: "deploy", | ||
}), | ||
cdkRequireApproval: Flags.string({ | ||
aliases: ["require-approval"], | ||
description: "CDK approval level", | ||
default: "never", | ||
}), | ||
build: Flags.boolean({ | ||
description: "Perform build", | ||
default: true, | ||
}), | ||
saveExec: Flags.boolean({ | ||
aliases: ["save"], | ||
description: "Save successful task(s) execution to enable replay", | ||
default: true, | ||
}), | ||
dryRun: Flags.boolean({ | ||
aliases: ["dry-run"], | ||
description: "Only log commands but don't execute them", | ||
default: false, | ||
}), | ||
replay: Flags.boolean({ | ||
aliases: ["last"], | ||
description: "Replay last successful task(s) execution", | ||
default: false, | ||
}), | ||
}; |
Oops, something went wrong.