Framework
SetupContext
Interface: SetupContext
Context provided to setup hooks. Runs during CLI operations: create-robo or robo add.
Properties
| Property | Type |
|---|---|
env | typeof Env |
exec | (command: string) => Promise<{ stderr: string; stdout: string; }> |
logger | Logger |
package | { name: string; type: "plugin" | "template"; version: string; } |
package.name | string |
package.type | "plugin" | "template" |
package.version | string |
paths | { config: string; root: string; src: string; } |
paths.config | string |
paths.root | string |
paths.src | string |
prompt | <T>(questions: PromptQuestion[]) => Promise<T> |
trigger | "add" | "create" |
