id = "hop" name = "Hop" description = "Interact with Hop in your terminal." executables = ["hop"] [commands] format = 1 label = "Hop" description = "Deploy a container to Hop. Other subcommands are left out." quality = "ai-draft" base = "fig:hop" 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/hop.ts" license = "MIT" [[commands.subcommand]] path = ["deploy"] label = "Deploy a container" description = "Deploy a directory as a new container." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/hop.ts" license = "MIT" [[commands.subcommand.field]] id = "dir" label = "Directory" description = "Defaults to the current directory." type = "path" position = 0 path = { kind = "directory", role = "input" } sources = ["fig"] [[commands.subcommand.field]] id = "name" label = "Deployment name" type = "string" option = ["--name", "-n"] sources = ["fig"] [[commands.subcommand.field]] id = "type" label = "Container type" type = "string" option = ["--type", "-t"] suggestions = [{ value = "ephemeral", label = "ephemeral" }, { value = "persistent", label = "persistent" }] sources = ["fig"] [[commands.subcommand.field]] id = "containers" label = "Container count" type = "integer" option = ["--containers", "-i"] sources = ["fig"] [[commands.subcommand.field]] id = "cpu" label = "CPUs" type = "integer" option = ["--cpu", "-c"] sources = ["fig"] [[commands.subcommand.field]] id = "ram" label = "RAM" type = "string" option = ["--ram", "-m"] suggestions = [{ value = "128MB", label = "128MB" }, { value = "256MB", label = "256MB" }, { value = "512MB", label = "512MB" }, { value = "1G", label = "1G" }, { value = "2G", label = "2G" }, { value = "4G", label = "4G" }] sources = ["fig"] [[commands.subcommand.field]] id = "scaling" label = "Scaling strategy" type = "string" option = ["--scaling", "-s"] suggestions = [{ value = "manual", label = "manual" }, { value = "autoscale", label = "autoscale" }] sources = ["fig"] [[commands.subcommand.field]] id = "env" label = "Environment variables" description = "KEY=VALUE, repeatable." type = "string" option = ["--env", "-e"] multiple = true sources = ["fig"] [[commands.subcommand.field]] id = "project" label = "Project" type = "string" option = ["--project", "-p"] sources = ["fig"] [[commands.subcommand.task]] id = "deploy" label = "Deploy" fields = ["dir", "name", "type", "project"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["dir", "name", "type", "project"] [[commands.subcommand.group]] id = "advanced" label = "Resources" fields = ["containers", "cpu", "ram", "scaling", "env"]