id = "git-profile" name = "git-profile" description = "Switch git configuration profiles." executables = ["git-profile"] [commands] format = 1 label = "Switch git profile" description = "Apply a profile from the config file to this repository." quality = "ai-draft" base = "fig:git-profile" 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/git-profile.ts" license = "MIT" [[commands.field]] id = "config" label = "Config file" description = "Default ~/.gitprofile." type = "path" option = ["--config", "-c"] path = { kind = "file", role = "input" } sources = ["fig"] [[commands.group]] id = "basic" label = "Basic" fields = ["config"] [[commands.subcommand]] path = ["use"] label = "Use a profile" description = "Apply a profile in this repository." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/git-profile.ts" license = "MIT" [[commands.subcommand.field]] id = "profile" label = "Profile" type = "string" position = 0 sources = ["fig"] [[commands.subcommand.task]] id = "use" label = "Use profile" fields = ["profile"] required = ["profile"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["profile"]