-
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.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
6 changed files
with
65 additions
and
263 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 was deleted.
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
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,57 @@ | ||
from typing import List | ||
|
||
from blue_options.terminal import show_usage, xtra | ||
|
||
|
||
def help_( | ||
tokens: List[str], | ||
mono: bool, | ||
) -> str: | ||
options = "clipboard|filename=<filename>|key|screen,env=<env-name>,eval,plugin=<plugin-name>,~log" | ||
|
||
return show_usage( | ||
[ | ||
"@seed", | ||
"<target>", | ||
f"[{options}]", | ||
"[cat,dryrun]", | ||
"<command-line>", | ||
], | ||
"generate and output a seed 🌱.", | ||
mono=mono, | ||
) | ||
|
||
|
||
def help_eject( | ||
tokens: List[str], | ||
mono: bool, | ||
) -> str: | ||
return show_usage( | ||
[ | ||
"@seed", | ||
"eject", | ||
], | ||
"eject seed 🌱.", | ||
mono=mono, | ||
) | ||
|
||
|
||
def help_list( | ||
tokens: List[str], | ||
mono: bool, | ||
) -> str: | ||
return show_usage( | ||
[ | ||
"@seed", | ||
"list", | ||
], | ||
"list seed 🌱 targets.", | ||
mono=mono, | ||
) | ||
|
||
|
||
help_functions = { | ||
"": help_, | ||
"eject": help_eject, | ||
"list": help_list, | ||
} |