-
-
Notifications
You must be signed in to change notification settings - Fork 121
Improve Atmos help #959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Atmos help #959
Changes from 8 commits
01bcd67
0470a32
3d3ebbc
1badbc8
284db86
d21e412
06353a5
bb9705b
6317c43
5ddbc4d
8b74647
7f9fbb3
f0fcf3c
08153a5
b1cc112
370e982
045ab19
e8fbcaf
3e4563e
d65a24e
dbb87ba
9731347
f801cff
2ecd83a
0087493
e9fce14
28a2f65
0d0fb70
a3443fe
f1fc80f
6c7a191
0a0434e
7fc52ed
b08659a
f3decf2
dc77e1f
3972f82
8013318
f6d5a19
fbddec2
d1ce9ef
8f0e37c
78fbefc
a644478
f90abf5
7d6bff2
6aede13
f5cba9a
d714ab6
68cec78
2954d72
3c15f4c
c0dd9ae
2881ff4
eeeb4cb
66116ab
f90e81e
cd58e7b
5a4068a
faa862f
e1fba8a
f1f598f
7b038f1
1d95b24
5506308
5faaa7d
de042b9
8738804
c66dbfa
652751b
c0ab2d4
316fc49
7dc5ec7
d3790d0
ffc48a3
e71cb8d
d4a5a5c
865db1e
9a7e14a
b3ea391
86d0c90
2a91d97
864e029
ca47b50
9ce4286
e17522d
3e4cee8
3f19100
46e53e2
19a0d21
67ee36d
8354b03
64424ee
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Examples: | ||
|
||
– Execute a terraform apply | ||
|
||
``` | ||
$ atmos terraform apply <component-name> -s <stack-name> | ||
osterman marked this conversation as resolved.
Show resolved
Hide resolved
|
||
``` | ||
osterman marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Examples: | ||
samtholiya marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
– Execute a terraform plan | ||
|
||
``` | ||
$ atmos terraform plan <component-name> -s <stack-name> | ||
osterman marked this conversation as resolved.
Show resolved
Hide resolved
|
||
``` | ||
osterman marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Examples: | ||
samtholiya marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
– Execute a terraform | ||
|
||
``` | ||
$ atmos terraform [sub-command] <component-name> -s <stack-name> | ||
osterman marked this conversation as resolved.
Show resolved
Hide resolved
|
||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package cmd | ||
|
||
import _ "embed" | ||
|
||
//go:embed markdown/atmos_terraform_usage.md | ||
var terraform string | ||
aknysh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
//go:embed markdown/atmos_terraform_plan_usage.md | ||
var terraformPlan string | ||
|
||
//go:embed markdown/atmos_terraform_apply_usage.md | ||
var terraformApply string | ||
|
||
type ExampleContent struct { | ||
Content string | ||
Suggestion string | ||
} | ||
|
||
var doubleDashHint string = "Double dashes can be used to signify the end of Atmos-specific options and the beginning of additional native arguments and flags for the specific command being run." | ||
samtholiya marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
var examples map[string]ExampleContent = map[string]ExampleContent{ | ||
osterman marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"atmos_terraform": { | ||
Content: terraform, | ||
Suggestion: "https://atmos.tools/cli/commands/terraform/usage", | ||
}, | ||
"atmos_terraform_plan": { | ||
Content: terraformPlan, | ||
// TODO: We should update this once we have a page for terraform plan | ||
samtholiya marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Suggestion: "https://atmos.tools/cli/commands/terraform/usage", | ||
}, | ||
"atmos_terraform_apply": { | ||
Content: terraformApply, | ||
// TODO: We should update this once we have a page for terraform plan | ||
Suggestion: "https://atmos.tools/cli/commands/terraform/usage", | ||
}, | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.