id = "agrippa" name = "Agrippa" description = "CLI that generates React components from a name and options." executables = ["agrippa"] [commands] format = 1 label = "Generate React component" description = "Generate a React component. Only a handful of the generation options are exposed." quality = "ai-draft" base = "fig:agrippa" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/agrippa.ts" license = "MIT" [[commands.subcommand]] path = ["generate"] label = "Generate component" [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/agrippa.ts" license = "MIT" [[commands.subcommand.field]] id = "name" label = "Component name" type = "string" position = 0 sources = ["fig"] [[commands.subcommand.field]] id = "props" label = "Prop declaration" type = "string" option = ["--props"] suggestions = [{ value = "ts", label = "TypeScript" }, { value = "jsdoc", label = "JSDoc" }, { value = "prop-types", label = "PropTypes" }, { value = "none", label = "None" }] sources = ["fig"] [[commands.subcommand.field]] id = "export_type" label = "Export type" type = "string" option = ["--export-type"] suggestions = [{ value = "named", label = "Named" }, { value = "default", label = "Default" }] sources = ["fig"] [[commands.subcommand.field]] id = "declaration" label = "Declaration style" type = "string" option = ["--declaration"] suggestions = [{ value = "const", label = "const arrow function" }, { value = "function", label = "function" }] sources = ["fig"] [[commands.subcommand.field]] id = "styling" label = "Styling" type = "string" option = ["--styling"] suggestions = [{ value = "none", label = "None" }, { value = "css", label = "CSS" }, { value = "scss", label = "SCSS" }, { value = "jss", label = "JSS" }, { value = "mui", label = "MUI" }, { value = "react-native", label = "React Native" }] sources = ["fig"] [[commands.subcommand.field]] id = "destination" label = "Destination" type = "path" option = ["--dest", "--destination"] path = { kind = "directory", role = "output", must_exist = false } sources = ["fig"] [[commands.subcommand.field]] id = "overwrite" label = "Overwrite existing" type = "string" option = ["--overwrite"] effect = "overwrite" description = "Pass true to replace existing files." suggestions = [{ value = "true", label = "true" }, { value = "false", label = "false" }] sources = ["fig"] [[commands.subcommand.task]] id = "generate" label = "Generate component" fields = ["name", "props", "destination"] required = ["name"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["name", "destination", "props", "export_type", "declaration", "styling", "overwrite"]