|
@@ -61,10 +61,16 @@ func NewKeyboardFetchCmd() *cobra.Command {
|
|
|
// rather than a verb on purpose. `keyboard list` reads as listing the
|
|
// rather than a verb on purpose. `keyboard list` reads as listing the
|
|
|
// keyboards, which is what `keyboard info` does, and the root already has a
|
|
// keyboards, which is what `keyboard info` does, and the root already has a
|
|
|
// `list` that means the profile store; one verb must not mean two stores.
|
|
// `list` that means the profile store; one verb must not mean two stores.
|
|
|
|
|
+//
|
|
|
|
|
+// The Short names what the command can do beyond listing, because `generate` is
|
|
|
|
|
+// two levels down and cobra does not list a subcommand under a parent that runs
|
|
|
|
|
+// itself: from `keyboard --help` this line is all there is, and a reader who
|
|
|
|
|
+// finds out by running `generate` and getting an arity error has not been told
|
|
|
|
|
+// anything.
|
|
|
func NewKeyboardDefinitionsCmd() *cobra.Command {
|
|
func NewKeyboardDefinitionsCmd() *cobra.Command {
|
|
|
return &cobra.Command{
|
|
return &cobra.Command{
|
|
|
Use: "definitions",
|
|
Use: "definitions",
|
|
|
- Short: "List the definition files in the data directory, and those built in",
|
|
|
|
|
|
|
+ Short: "List the definition files in the data directory, and those built in; also writes one, with `generate`",
|
|
|
Args: cobra.NoArgs,
|
|
Args: cobra.NoArgs,
|
|
|
RunE: runKeyboardDefinitions,
|
|
RunE: runKeyboardDefinitions,
|
|
|
}
|
|
}
|