Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
co-authored by
Julien Robert
parent
e37404dce3
commit
e3c64e3adf
+1
-1
@@ -38,7 +38,7 @@ Here are the steps to use AutoCLI:
|
||||
|
||||
1. Ensure your app's modules implements the `appmodule.AppModule` interface.
|
||||
2. (optional) Configure how behave `autocli` command generation, by implementing the `func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions` method on the module.
|
||||
3. Use the `autocli.AppOptions` struct to specify the modules you defined. If you are using `depinject` / app v2, it can automatically create an instance of `autocli.AppOptions` based on your app's configuration.
|
||||
3. Use the `autocli.AppOptions` struct to specify the modules you defined. If you are using `depinject`, it can automatically create an instance of `autocli.AppOptions` based on your app's configuration.
|
||||
4. Use the `EnhanceRootCommand()` method provided by `autocli` to add the CLI commands for the specified modules to your root command.
|
||||
|
||||
:::tip
|
||||
|
||||
Reference in New Issue
Block a user