id = "tsuru" name = "tsuru client" homepage = "https://tsuru.io" description = "tsuru is a command line for application developers on tsuru." # tsuru's origami crane, the same glyph its wordmark (tsuru.io brand.svg) # is built around, on its own so it reads at icon size. icon = "https://github.com/tsuru.png" executables = ["tsuru"] [dotfiles] # All four paths come from tsuru-client's own source, which builds them with # config.JoinWithUserDir (a join onto the user's home directory): # # go-tsuruclient/pkg/config/config.go # configPath = JoinWithUserDir(".tsuru", "config.json") # "ConfigType is the main config, serialized to ~/.tsuru/config.json" # tsuru/client/target.go # targetPath = JoinWithUserDir(".tsuru", "target") // the current target # targetsPath = JoinWithUserDir(".tsuru", "targets") // "label\turl" lines # and the legacy ~/.tsuru_target / ~/.tsuru_targets, which the same file # still reads and migrates from. paths = [ "~/.tsuru/config.json", "~/.tsuru/target", "~/.tsuru/targets", "~/.tsuru_target", "~/.tsuru_targets", ] exclude = [] # tsuru/auth/login.go, in the login command's help: "the token generated by the # tsuru server will be stored in [[${HOME}/.tsuru/token]]". The whole file is # that token. secret = ["~/.tsuru/token"] # Read at the start of a command and written back when it ends; no resident # process holds it. side_effect = false # No machine_lines: the target list is a set of tsuru servers the user works # with, which is exactly what should follow them to a new machine, and # config.json holds a schema version and the self-updater's manifest URL. [commands] format = 1 label = "tsuru apps" description = "List apps, inspect them, read logs and restart. Deploys, env vars and clusters are left out." quality = "ai-draft" base = "fig:tsuru" parser = { end_of_options = "--", interleave = "permute", long_equals = false, short_attached = true, short_bundles = true } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/tsuru.ts" license = "MIT" [[commands.subcommand]] path = ["app", "list"] label = "List apps" description = "List applications with optional filters." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/tsuru.ts" license = "MIT" [[commands.subcommand.field]] id = "names_only" label = "Names only" type = "boolean" option = ["-q"] sources = ["fig"] [[commands.subcommand.field]] id = "team" label = "Team" type = "string" option = ["-t", "--team"] sources = ["fig"] [[commands.subcommand.field]] id = "pool" label = "Pool" type = "string" option = ["-o", "--pool"] sources = ["fig"] [[commands.subcommand.field]] id = "platform" label = "Platform" type = "string" option = ["-p", "--platform"] sources = ["fig"] [[commands.subcommand.field]] id = "status" label = "Unit status (comma separated)" type = "string" option = ["-s", "--status"] sources = ["fig"] [[commands.subcommand.task]] id = "list" label = "List apps" fields = ["names_only", "team"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["names_only", "team", "pool", "platform", "status"] [[commands.subcommand]] path = ["app", "info"] label = "App info" description = "Show information about an app." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/tsuru.ts" license = "MIT" [[commands.subcommand.field]] id = "app" label = "App" type = "string" option = ["-a", "--app"] sources = ["fig"] [[commands.subcommand.task]] id = "info" label = "App info" fields = ["app"] required = ["app"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["app"] [[commands.subcommand]] path = ["app", "log"] label = "App logs" description = "Show an app log." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/tsuru.ts" license = "MIT" [[commands.subcommand.field]] id = "app" label = "App" type = "string" option = ["-a", "--app"] sources = ["fig"] [[commands.subcommand.field]] id = "follow" label = "Follow" type = "boolean" option = ["-f", "--follow"] sources = ["fig"] [[commands.subcommand.field]] id = "lines" label = "Number of lines" type = "integer" option = ["-l", "--lines"] sources = ["fig"] [[commands.subcommand.field]] id = "source" label = "Source" type = "string" option = ["-s", "--source"] sources = ["fig"] [[commands.subcommand.field]] id = "unit" label = "Unit" type = "string" option = ["-u", "--unit"] sources = ["fig"] [[commands.subcommand.task]] id = "log" label = "Follow logs" fields = ["app", "follow"] required = ["app"] set = { follow = [true] } [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["app", "follow", "lines", "source", "unit"] [[commands.subcommand]] path = ["app", "restart"] label = "Restart app" description = "Restart an app or one process." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/tsuru.ts" license = "MIT" [[commands.subcommand.field]] id = "app" label = "App" type = "string" option = ["-a", "--app"] sources = ["fig"] [[commands.subcommand.field]] id = "process" label = "Process" type = "string" option = ["-p", "--process"] sources = ["fig"] [[commands.subcommand.task]] id = "restart" label = "Restart" fields = ["app", "process"] required = ["app"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["app", "process"]