diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2024-07-30 10:42:38 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2024-07-30 10:42:38 +0200 |
commit | ccce704296792fb3efc7590e70b05cff52532258 (patch) | |
tree | 881d680a5e0a76bc88b602b03b0f13497789e23f /src/Command.hs | |
parent | 3b025f4c1c82e3ce5d4b6017228af32aee9327ac (diff) |
Help for subcommands
Diffstat (limited to 'src/Command.hs')
-rw-r--r-- | src/Command.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Command.hs b/src/Command.hs index bb0b26f..ae24534 100644 --- a/src/Command.hs +++ b/src/Command.hs @@ -31,6 +31,8 @@ class CommandArgumentsType (CommandArguments c) => Command c where type CommandArguments c :: Type type CommandArguments c = () + commandUsage :: proxy c -> Text + commandInit :: CommandArgumentsType (CommandArguments c) => proxy c -> CommandOptions c -> CommandArguments c -> c commandExec :: c -> CommandExec () |