-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
81 additions
and
19 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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,68 @@ | ||
from typing import List | ||
|
||
from blue_options.terminal import show_usage, xtra | ||
|
||
|
||
def help_( | ||
tokens: List[str], | ||
mono: bool, | ||
) -> str: | ||
return show_usage( | ||
[ | ||
"@terraform", | ||
], | ||
"terraform this machine.", | ||
mono=mono, | ||
) | ||
|
||
|
||
def help_cat( | ||
tokens: List[str], | ||
mono: bool, | ||
) -> str: | ||
return show_usage( | ||
[ | ||
"@terraform", | ||
"cat", | ||
], | ||
"cat terraform files.", | ||
mono=mono, | ||
) | ||
|
||
|
||
def help_disable( | ||
tokens: List[str], | ||
mono: bool, | ||
) -> str: | ||
return show_usage( | ||
[ | ||
"@terraform", | ||
"disable", | ||
], | ||
"disable terraform.", | ||
mono=mono, | ||
) | ||
|
||
|
||
def help_enable( | ||
tokens: List[str], | ||
mono: bool, | ||
) -> str: | ||
options = "actions|repo" | ||
|
||
return show_usage( | ||
[ | ||
"@terraform", | ||
"enable", | ||
], | ||
"enable terraform.", | ||
mono=mono, | ||
) | ||
|
||
|
||
help_functions = { | ||
"": help_, | ||
"cat": help_cat, | ||
"disable": help_disable, | ||
"enable": help_enable, | ||
} |