id = "ghq" name = "ghq" description = "Organizes remote repository clones under a common root." homepage = "https://github.com/x-motemen/ghq" executables = ["ghq"] [commands] format = 1 label = "Manage repository clones" description = "Clone, list and create repositories under the ghq root." quality = "ai-draft" base = "fig:ghq" 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/ghq.ts" license = "MIT" [[commands.subcommand]] path = ["get"] label = "Clone a repository" description = "Clone or sync a remote repository into the ghq root." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/ghq.ts" license = "MIT" [[commands.subcommand.field]] id = "repository" label = "Repository" description = "URL, user/project or host/user/project." type = "string" position = 0 sources = ["fig"] [[commands.subcommand.field]] id = "update" label = "Update if already cloned" type = "boolean" option = ["--update", "-u"] sources = ["fig"] [[commands.subcommand.field]] id = "ssh" label = "Clone with SSH" type = "boolean" option = ["-p"] sources = ["fig"] [[commands.subcommand.field]] id = "shallow" label = "Shallow clone" type = "boolean" option = ["--shallow"] sources = ["fig"] [[commands.subcommand.field]] id = "branch" label = "Branch" type = "string" option = ["--branch", "-b"] sources = ["fig"] [[commands.subcommand.field]] id = "look" label = "Open after clone" type = "boolean" option = ["--look", "-l"] sources = ["fig"] [[commands.subcommand.field]] id = "bare" label = "Bare clone" type = "boolean" option = ["--bare"] sources = ["fig"] [[commands.subcommand.field]] id = "vcs" label = "VCS backend" type = "string" option = ["--vcs"] sources = ["fig"] [[commands.subcommand.task]] id = "clone" label = "Clone" fields = ["repository", "shallow", "ssh"] required = ["repository"] [[commands.subcommand.task]] id = "update" label = "Clone or update" fields = ["repository", "update"] required = ["repository"] set = { update = [true] } [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["repository", "update", "ssh", "shallow", "branch"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["look", "bare", "vcs"] [[commands.subcommand]] path = ["list"] label = "List repositories" description = "List repositories under the ghq root." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/ghq.ts" license = "MIT" [[commands.subcommand.field]] id = "query" label = "Query" type = "string" position = 0 sources = ["fig"] [[commands.subcommand.field]] id = "exact" label = "Exact match" type = "boolean" option = ["--exact", "-e"] sources = ["fig"] [[commands.subcommand.field]] id = "full_path" label = "Full paths" type = "boolean" option = ["--full-path", "-p"] sources = ["fig"] [[commands.subcommand.field]] id = "unique" label = "Unique subpaths" type = "boolean" option = ["--unique"] sources = ["fig"] [[commands.subcommand.task]] id = "list" label = "List" fields = ["query", "full_path"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["query", "exact", "full_path"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["unique"] [[commands.subcommand]] path = ["create"] label = "Create a repository" description = "Create a new repository under the ghq root." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/ghq.ts" license = "MIT" [[commands.subcommand.field]] id = "project" label = "Project" description = "project, user/project or host/user/project." type = "string" position = 0 sources = ["fig"] [[commands.subcommand.field]] id = "vcs" label = "VCS backend" type = "string" option = ["--vcs"] sources = ["fig"] [[commands.subcommand.task]] id = "create" label = "Create" fields = ["project"] required = ["project"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["project"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["vcs"]