LaunchCommand returns the CLI binary name to launch. Falls back to the tool key when cli_command is empty.
()
| 66 | // LaunchCommand returns the CLI binary name to launch. Falls back to the |
| 67 | // tool key when cli_command is empty. |
| 68 | func (t Tool) LaunchCommand() string { |
| 69 | if t.CLICommand != "" { |
| 70 | return t.CLICommand |
| 71 | } |
| 72 | return t.Name |
| 73 | } |
| 74 | |
| 75 | // Registry holds the loaded tools.yaml. |
| 76 | type Registry struct { |
no outgoing calls