#compdef steamship

autoload -U is-at-least

_steamship() {
    typeset -A opt_args
    typeset -a _arguments_options
    local ret=1

    if is-at-least 5.2; then
        _arguments_options=(-s -S -C)
    else
        _arguments_options=(-s -C)
    fi

    local context curcontext="$curcontext" state line
    _arguments "${_arguments_options[@]}" : \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_steamship_commands" \
"*::: :->steamship" \
&& ret=0
    case $state in
    (steamship)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:steamship-command-$line[1]:"
        case $line[1] in
            (login)
_arguments "${_arguments_options[@]}" : \
'--account=[The build account, if not the one the last login remembered]:ACCOUNT:_default' \
'--web-api-key-only[Keep only the publisher Web API key, after Steam accepts it. No login happens]' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
'--account=[The build account, if not the one the last login remembered]:ACCOUNT:_default' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(check)
_arguments "${_arguments_options[@]}" : \
'(--scripts-only)--content-root=[In a game'\''s folder, check the files in this folder instead of those in the app build script'\''s \`ContentRoot\`. \`check\` alone leaves the content'\''s files to \`upload\`. A relative path is read from the current folder, and a depot'\''s own relative \`ContentRoot\` is read from this folder. The folder must exist]:DIR:_files' \
'--scripts-only[Check the scripts alone, not the content they map, as before the build exists. \`upload\` still checks both]' \
'--demo[In a game'\''s folder, check the demo, a separate app, instead of the full game. With a build'\''s folder, judge it against the demo'\''s settings snapshot. A folder only the demo'\''s depots ship is judged that way without the flag]' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::app -- The app, by its ID or its app build script, such as `steam/app_build.vdf`. A build'\''s folder, such as `export/windows`, is checked instead of a script. In a game'\''s folder, the game'\''s own:_default' \
&& ret=0
;;
(upload)
_arguments "${_arguments_options[@]}" : \
'--version=[The version being shipped. With the commit, it becomes the build'\''s description. In a game'\''s folder, the newest release \`CHANGES.md\` heads, or else \`project.godot\`'\''s version. A version of all zeros, such as 0.0.0, is refused]:VERSION:_default' \
'()--content-root=[In a game'\''s folder, upload the build from this folder instead of the one the game'\''s app build script names as its \`ContentRoot\`. A relative path is read from the current folder, and a depot'\''s own relative \`ContentRoot\` is read from this folder. A build command may make the folder. Without one it must exist already]:DIR:_files' \
'--account=[The build account, if not the one the last login remembered]:ACCOUNT:_default' \
'--dry-run[Compute and log the whole build without uploading anything, as Valve'\''s dry run]' \
'(--dry-run)--default[Also set the build live on the default branch, while Steam shows the app unreleased. This goes through Steam'\''s partner Web API, with the publisher key as \`builds\` finds it. Once the app is released, the build goes up without this. Set its default branch live in Steamworks then. In a game'\''s folder, an upload does this without the flag]' \
'()--demo[In a game'\''s folder, ship the demo, a separate app, instead of the full game. It is built with the demo'\''s \`build\` command. Its depots are kept apart from the full game'\''s and ship only the Godot exports made with the demo'\''s feature. It is checked against the demo'\''s own settings snapshot, which must show it typed Demo with the full game as its base game]' \
'--json[Once steamcmd has run, print what came of it on standard output as one line of JSON\: \`outcome\`, \`app\`, \`build_id\`, \`branch\`, \`live\`, \`default\`, \`description\` and, when the run failed, \`error\` with a \`code\` and a \`message\`. Everything else goes to standard error]' \
'--allow-ungreen[Upload a commit that is not on the game'\''s \`green\` branch, such as a hotfix]' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::app -- The app, by its ID or its app build script, such as `steam/app_build.vdf`. In a game'\''s folder, the game'\''s own:_default' \
&& ret=0
;;
(workshop)
_arguments "${_arguments_options[@]}" : \
'--items=[The file that keeps the ID of each item made, by the item'\''s name, such as \`steam/workshop_items.json\`. Keep it with the game. A run on any machine then updates the item an earlier run made. steamship writes it and makes it if missing]:FILE:_files' \
'--content=[The folder uploaded as the item'\''s content]:FOLDER:_files' \
'--preview-image=[The item'\''s preview image, 1 MB at most]:IMAGE:_files' \
'--title=[The item'\''s title, 128 bytes at most]:TITLE:_default' \
'--description=[The item'\''s description, 8000 bytes at most]:TEXT:_default' \
'--change-note=[What changed in this upload, 8000 bytes at most, shown in the item'\''s change notes]:TEXT:_default' \
'--name=[The item'\''s name in the \`--items\` file, such as \`example\`. In a game'\''s folder, the one example mod to upload]:NAME:_default' \
'--visibility=[Who may see the item\: \`public\`, \`friends-only\`, \`private\` or \`unlisted\`. Needed to make a new item. Left out, an existing item keeps its visibility. In a game'\''s folder, it applies only to the items being made]:VISIBILITY:_default' \
'--account=[The build account, if not the one the last login remembered]:ACCOUNT:_default' \
'--new[Make a new item from CI, which is otherwise refused there]' \
'--for-launch[Upload an item while Steam still shows the game unreleased, though \`steamship.toml\` holds its Workshop items until launch]' \
'--dry-run[Check each item and upload nothing]' \
'--json[Once steamcmd has run, print what came of the run on standard output as one line of JSON\: \`app\`, \`items\` (each with \`name\`, \`item_id\`, \`outcome\` and \`log\`) and, when the run failed, \`error\` with a \`code\` and a \`message\`. Everything else goes to standard error]' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::app -- The app, by its ID or its app build script, when the item is given by fields. Otherwise an item script such as `workshop/item.vdf`, or the game'\''s own app:_default' \
&& ret=0
;;
(builds)
_arguments "${_arguments_options[@]}" : \
'--count=[How many of the last builds to list]:COUNT:_default' \
'()--demo[In a game'\''s folder, list the demo'\''s branches and builds]' \
'--json[Print the branches and builds on standard output as one line of JSON, or what Steam failed with as an \`error\` holding a \`code\`. Everything else goes to standard error]' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::app -- The app, by its ID or its app build script. In a game'\''s folder, the game'\''s own:_default' \
&& ret=0
;;
(fetch)
_arguments "${_arguments_options[@]}" : \
'--branch=[The branch whose live build is fetched. The default branch, unless \`--build\` names a build live on another]:BRANCH:_default' \
'--build=[The build, by its build ID. Refused unless it is live on \`--branch\`, or without \`--branch\`, on some branch]:BUILD:_default' \
'--system=[The system whose depots are fetched\: windows, linux or macos. This system'\''s by default]:SYSTEM:_default' \
'--output=[The folder to fetch the build into. It holds this one branch and system alone]:FOLDER:_files' \
'--account=[The build account, if not the one the last login remembered]:ACCOUNT:_default' \
'()--demo[In a game'\''s folder, its demo]' \
'--password-on-command-line[Give steamcmd the branch'\''s password on its command line, not typed into its console. Any program on this machine can read it there while the fetch runs]' \
'--keep-password[Keep the branch'\''s password, from \`STEAMSHIP_BRANCH_PASSWORD\` or typed, in the system'\''s credential store without asking, once Steam has accepted it]' \
'--json[Print one line of JSON on standard output\: \`app\`, \`branch\`, \`build_id\`, \`system\` and \`folder\` once the build is fetched, or \`app\` and \`error\` when the fetch failed. Everything else goes to standard error]' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::app -- The app, by its ID or its app build script. In a game'\''s folder, the game'\''s own:_default' \
&& ret=0
;;
(achievements)
_arguments "${_arguments_options[@]}" : \
'(--check --write --imported --json)--save=[Write the achievements and stats Steam holds to this JSON file, as \`--check\` reads it. Refused, exiting 2, when an achievement has no name in English, which a file must give. Refused too when the file is there and holds more than \`--save\` writes, such as an \`icon\` or a \`sets\` list]:FILE:_files' \
'--output=[The folder \`--write\` writes into, made if missing. Files of the kinds it writes for the app that it would no longer write are removed. Other files, \`steam-icons.json\` among them, are left alone. With \`--check\`, the folder whose \`steam-icons.json\` the icons are checked against]:FOLDER:_files' \
'--check[Compare the achievements Steam holds with the files]' \
'(--check --json)--write[Write the achievement editor'\''s import files from the achievement files, read as \`--check\` reads them. In a game'\''s folder, with no files, write from the game'\''s own into \`steam/achievements\`]' \
'--unchanged[Write nothing, and exit 2 naming each file in the folder that differs from what \`--write\` would write there, is missing, or is left over. \`steam-icons.json\` is none of these]' \
'(--unchanged --check --json)--imported[Write only \`steam-icons.json\` into the folder, from the icons Steam holds once the folder'\''s files are imported and published. In a game'\''s folder it needs no \`--write\`]' \
'(--check)--json[Print the achievements and stats on standard output as one line of JSON, or what Steam failed with as an \`error\` holding a \`code\`. Everything else goes to standard error]' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::app -- The app, by its ID or its app build script. In a game'\''s folder, the game'\''s own:_default' \
'*::files -- JSON files of the achievements the app should have, each with its `api_name`, `name`, `description` and `hidden`. Stats to be checked go in them too, each with its `api_name`, `name` and `default`. A file may instead be a list of games-kit records, the JSON records a game keeps its content in. Those typed `achievement` and `stat` are read by the API name in `steam`. Each achievement and stat is in one file only. A `.csv` file is a localisation in the columns Steamworks'\'' achievement editor exports. A `.po` file is a gettext catalogue. Either must translate every achievement. Files follow the app. `--check` or `--write` says what to do with them:_files' \
&& ret=0
;;
(assets)
_arguments "${_arguments_options[@]}" : \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':folder -- The folder the artwork is kept in, such as `steam/store`:_files' \
&& ret=0
;;
(drm-wrap)
_arguments "${_arguments_options[@]}" : \
'--output=[Write the wrapped executable here instead of replacing the one given]:FILE:_files' \
'--account=[The build account, if not the one the last login remembered]:ACCOUNT:_default' \
'--compatibility[Wrap in Valve'\''s compatibility mode, for an executable the default wrap breaks]' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::app -- The app, by its ID or its app build script. In a game'\''s folder, the game'\''s own:_default' \
':executable -- The Windows executable, such as `build/windows/game.exe`:_files' \
&& ret=0
;;
(settings)
_arguments "${_arguments_options[@]}" : \
'--account=[The build account, if not the one the last login remembered]:ACCOUNT:_default' \
'()--demo[In a game'\''s folder, uses the demo and its own snapshot beside the build scripts. Takes no app or file. To name a file, give the demo'\''s ID as the app instead]' \
'(--check)--save[Write the settings to the snapshot file, replacing it, to check against later. Refused, exiting 2, for an install folder of anything but letters and digits]' \
'--check[Compare the settings with the snapshot file, as \`--save\` wrote it. An install folder of anything but letters and digits is a difference]' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::app -- The app, by its ID or its app build script. In a game'\''s folder, the game'\''s own:_default' \
'::file -- The snapshot file, after the app. In a game'\''s folder, `settings.vdf` beside its build scripts:_files' \
&& ret=0
;;
(leaderboards)
_arguments "${_arguments_options[@]}" : \
'(--check --create --delete-missing)--save=[Write the leaderboards Steam holds to this JSON file, as \`--check\` reads it. Refused, exiting 2, when a leaderboard has no display type, which a file cannot give. Refused too when the file is there and holds more than \`--save\` writes, such as a \`period\`]:FILE:_files' \
'--account=[The build account that asks Steam whether the app is released, if not the one the last login remembered]:ACCOUNT:_default' \
'--check[Compare the leaderboards Steam holds with the files]' \
'--create[Make the leaderboards in the files that Steam lacks, before checking]' \
'--delete-missing[Delete the leaderboards on Steam that the files do not hold, before checking. Refused once the app is released, as their players'\'' scores would go with them]' \
'(--check --save --create --delete-missing)--json[Print the leaderboards on standard output as one line of JSON, or what Steam failed with as an \`error\` holding a \`code\`. Everything else goes to standard error]' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::app -- The app, by its ID or its app build script. In a game'\''s folder, the game'\''s own:_default' \
'*::files -- JSON files of the leaderboards the app should have, each with its `name`, `sort`, `display`, `trusted_writes`, `friends_only` and `period`. A file may instead be a list of games-kit records, the JSON records a game keeps its content in. Those typed `leaderboard` are read by the name in `steam`. Each leaderboard is in one file only. Files follow the app. `--check`, `--create` or `--delete-missing` says what to do with them:_files' \
&& ret=0
;;
(rich-presence)
_arguments "${_arguments_options[@]}" : \
'()--demo[In a game'\''s folder, send the full game'\''s files to its demo]' \
'--dry-run[Check the files and show what would be sent, without sending anything]' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::app -- The app, by its ID or its app build script. In a game'\''s folder, the game'\''s own:_default' \
'*::files -- The rich presence files after the app, such as `steam/rich_presence_english.vdf`. In a game'\''s folder, every one beside its build scripts:_files' \
&& ret=0
;;
(text)
_arguments "${_arguments_options[@]}" : \
'(--steam)--unchanged[Write nothing, and exit 2 naming each file that differs from what would be written, is missing, or is left over]' \
'(--unchanged --steam)--template[Print every English text Steam shows as a gettext template, for a game'\''s own template to take in. Nothing is written beside the scripts. Each text is under the context the catalogues translate it by, with a translator note and \`max-length\:N\` where Steam'\''s room for it is short. Texts that records or other files supply are left out. The rest are under \`steam achievements\`]' \
'--steam[Write nothing. Exit 2 and name each minimum or recommended system requirement that the game'\''s public store page does not show as given. The page is compared in each language with \`store_english.json\` and its translations. Steam shows requirements only once the page is public, Coming Soon included. Memory, storage, the DirectX version and VR support are not compared]' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(promote)
_arguments "${_arguments_options[@]}" : \
'--build=[The build, by its build ID]:BUILD:_default' \
'--branch=[The branch to set it live on]:BRANCH:_default' \
'--account=[The build account that asks Steam whether the app is released, for the default branch, if not the one the last login remembered]:ACCOUNT:_default' \
'()--demo[In a game'\''s folder, its demo]' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::app -- The app, by its ID or its app build script. In a game'\''s folder, the game'\''s own:_default' \
&& ret=0
;;
(rollback)
_arguments "${_arguments_options[@]}" : \
'--account=[The build account that asks Steam whether the app is released, for the default branch, if not the one the last login remembered]:ACCOUNT:_default' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::app -- The app, by its ID or its app build script. In a game'\''s folder, the game'\''s own:_default' \
':branch -- The branch to set back:_default' \
&& ret=0
;;
(branch)
_arguments "${_arguments_options[@]}" : \
'--description=[Its new description, such as the version live on it]:DESCRIPTION:_default' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::app -- The app, by its ID or its app build script. In a game'\''s folder, the game'\''s own:_default' \
':branch -- The beta branch:_default' \
&& ret=0
;;
(ci)
_arguments "${_arguments_options[@]}" : \
'--repo=[The GitHub repository as owner/name, if not the one \`origin\` points at]:REPO:_default' \
'--account=[The build account, if not the one the last login remembered]:ACCOUNT:_default' \
'--secret=[The name of the secret the login is kept in]:SECRET:_default' \
'--output=[Write the login to this file instead, for a CI other than GitHub Actions]:OUTPUT:_files' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::app -- The app, by its ID or its app build script, if not the one found in the repository:_default' \
&& ret=0
;;
(logout)
_arguments "${_arguments_options[@]}" : \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(init)
_arguments "${_arguments_options[@]}" : \
'*--depot=[A depot and the folder its files ship from, such as 1001=build/windows. The folder is relative to where \`init\` runs, not to \`--output\`. Give it once for each depot]:ID=FOLDER:_default' \
'--output=[The folder the scripts are written into]:OUTPUT:_files' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':app -- The app'\''s ID, from Steamworks:_default' \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(languages)
_arguments "${_arguments_options[@]}" : \
'--json[Print the list as one JSON object, from each locale to Steam'\''s name for its language]' \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(self)
_arguments "${_arguments_options[@]}" : \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help]' \
'--help[Print help]' \
":: :_steamship__subcmd__self_commands" \
"*::: :->self" \
&& ret=0

    case $state in
    (self)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:steamship-self-command-$line[1]:"
        case $line[1] in
            (check)
_arguments "${_arguments_options[@]}" : \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_steamship__subcmd__self__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:steamship-self-help-command-$line[1]:"
        case $line[1] in
            (check)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(completions)
_arguments "${_arguments_options[@]}" : \
'--times[Show how long each step took, at the end of its line]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':shell -- The shell to complete in:(bash elvish fish powershell zsh)' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_steamship__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:steamship-help-command-$line[1]:"
        case $line[1] in
            (login)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(check)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(upload)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(workshop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(builds)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fetch)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(achievements)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(assets)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(drm-wrap)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(settings)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(leaderboards)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rich-presence)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(text)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(promote)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rollback)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(branch)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(ci)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(logout)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(languages)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(self)
_arguments "${_arguments_options[@]}" : \
":: :_steamship__subcmd__help__subcmd__self_commands" \
"*::: :->self" \
&& ret=0

    case $state in
    (self)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:steamship-help-self-command-$line[1]:"
        case $line[1] in
            (check)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(completions)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_steamship_commands] )) ||
_steamship_commands() {
    local commands; commands=(
'login:Log in to Steam, once, for uploads' \
'status:Show the login, steamcmd and whether Steam accepts the login' \
'check:Check the build scripts, without logging in' \
'upload:Check, build and upload, then print the build ID' \
'workshop:Upload a Workshop item, then print its ID' \
'builds:Show an app'\''s branches and last builds' \
'fetch:Download a branch'\''s live build into its own folder' \
'achievements:Show, save or check an app'\''s achievements and stats, or write their import' \
'assets:Check artwork and icons against Valve'\''s sizes, before they are uploaded' \
'drm-wrap:Wrap a Windows executable in Steam DRM, before it is uploaded' \
'settings:Show an app'\''s settings in Steamworks, or check them against a snapshot' \
'leaderboards:Show, save, check, create or delete an app'\''s leaderboards' \
'rich-presence:Upload an app'\''s rich presence localisation' \
'text:Write a game'\''s store, Workshop and rich presence text in every language it speaks' \
'promote:Set an uploaded build live on a branch' \
'rollback:Set a branch back to its previous build' \
'branch:Set the description players see for a beta branch' \
'ci:Set up uploads from CI, with the login as a secret' \
'logout:Forget the saved login' \
'init:Write starter build scripts for an app' \
'install:Install or verify the pinned steamcmd' \
'languages:List Steam'\''s languages with their locale codes' \
'self:Check this steamship binary' \
'completions:Print tab completion for bash, zsh, fish, PowerShell or elvish' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'steamship commands' commands "$@"
}
(( $+functions[_steamship__subcmd__achievements_commands] )) ||
_steamship__subcmd__achievements_commands() {
    local commands; commands=()
    _describe -t commands 'steamship achievements commands' commands "$@"
}
(( $+functions[_steamship__subcmd__assets_commands] )) ||
_steamship__subcmd__assets_commands() {
    local commands; commands=()
    _describe -t commands 'steamship assets commands' commands "$@"
}
(( $+functions[_steamship__subcmd__branch_commands] )) ||
_steamship__subcmd__branch_commands() {
    local commands; commands=()
    _describe -t commands 'steamship branch commands' commands "$@"
}
(( $+functions[_steamship__subcmd__builds_commands] )) ||
_steamship__subcmd__builds_commands() {
    local commands; commands=()
    _describe -t commands 'steamship builds commands' commands "$@"
}
(( $+functions[_steamship__subcmd__check_commands] )) ||
_steamship__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'steamship check commands' commands "$@"
}
(( $+functions[_steamship__subcmd__ci_commands] )) ||
_steamship__subcmd__ci_commands() {
    local commands; commands=()
    _describe -t commands 'steamship ci commands' commands "$@"
}
(( $+functions[_steamship__subcmd__completions_commands] )) ||
_steamship__subcmd__completions_commands() {
    local commands; commands=()
    _describe -t commands 'steamship completions commands' commands "$@"
}
(( $+functions[_steamship__subcmd__drm-wrap_commands] )) ||
_steamship__subcmd__drm-wrap_commands() {
    local commands; commands=()
    _describe -t commands 'steamship drm-wrap commands' commands "$@"
}
(( $+functions[_steamship__subcmd__fetch_commands] )) ||
_steamship__subcmd__fetch_commands() {
    local commands; commands=()
    _describe -t commands 'steamship fetch commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help_commands] )) ||
_steamship__subcmd__help_commands() {
    local commands; commands=(
'login:Log in to Steam, once, for uploads' \
'status:Show the login, steamcmd and whether Steam accepts the login' \
'check:Check the build scripts, without logging in' \
'upload:Check, build and upload, then print the build ID' \
'workshop:Upload a Workshop item, then print its ID' \
'builds:Show an app'\''s branches and last builds' \
'fetch:Download a branch'\''s live build into its own folder' \
'achievements:Show, save or check an app'\''s achievements and stats, or write their import' \
'assets:Check artwork and icons against Valve'\''s sizes, before they are uploaded' \
'drm-wrap:Wrap a Windows executable in Steam DRM, before it is uploaded' \
'settings:Show an app'\''s settings in Steamworks, or check them against a snapshot' \
'leaderboards:Show, save, check, create or delete an app'\''s leaderboards' \
'rich-presence:Upload an app'\''s rich presence localisation' \
'text:Write a game'\''s store, Workshop and rich presence text in every language it speaks' \
'promote:Set an uploaded build live on a branch' \
'rollback:Set a branch back to its previous build' \
'branch:Set the description players see for a beta branch' \
'ci:Set up uploads from CI, with the login as a secret' \
'logout:Forget the saved login' \
'init:Write starter build scripts for an app' \
'install:Install or verify the pinned steamcmd' \
'languages:List Steam'\''s languages with their locale codes' \
'self:Check this steamship binary' \
'completions:Print tab completion for bash, zsh, fish, PowerShell or elvish' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'steamship help commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__achievements_commands] )) ||
_steamship__subcmd__help__subcmd__achievements_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help achievements commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__assets_commands] )) ||
_steamship__subcmd__help__subcmd__assets_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help assets commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__branch_commands] )) ||
_steamship__subcmd__help__subcmd__branch_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help branch commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__builds_commands] )) ||
_steamship__subcmd__help__subcmd__builds_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help builds commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__check_commands] )) ||
_steamship__subcmd__help__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help check commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__ci_commands] )) ||
_steamship__subcmd__help__subcmd__ci_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help ci commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__completions_commands] )) ||
_steamship__subcmd__help__subcmd__completions_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help completions commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__drm-wrap_commands] )) ||
_steamship__subcmd__help__subcmd__drm-wrap_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help drm-wrap commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__fetch_commands] )) ||
_steamship__subcmd__help__subcmd__fetch_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help fetch commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__help_commands] )) ||
_steamship__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help help commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__init_commands] )) ||
_steamship__subcmd__help__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help init commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__install_commands] )) ||
_steamship__subcmd__help__subcmd__install_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help install commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__languages_commands] )) ||
_steamship__subcmd__help__subcmd__languages_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help languages commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__leaderboards_commands] )) ||
_steamship__subcmd__help__subcmd__leaderboards_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help leaderboards commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__login_commands] )) ||
_steamship__subcmd__help__subcmd__login_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help login commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__logout_commands] )) ||
_steamship__subcmd__help__subcmd__logout_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help logout commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__promote_commands] )) ||
_steamship__subcmd__help__subcmd__promote_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help promote commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__rich-presence_commands] )) ||
_steamship__subcmd__help__subcmd__rich-presence_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help rich-presence commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__rollback_commands] )) ||
_steamship__subcmd__help__subcmd__rollback_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help rollback commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__self_commands] )) ||
_steamship__subcmd__help__subcmd__self_commands() {
    local commands; commands=(
'check:Check that this steamship is its release'\''s own binary, byte for byte' \
    )
    _describe -t commands 'steamship help self commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__self__subcmd__check_commands] )) ||
_steamship__subcmd__help__subcmd__self__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help self check commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__settings_commands] )) ||
_steamship__subcmd__help__subcmd__settings_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help settings commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__status_commands] )) ||
_steamship__subcmd__help__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help status commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__text_commands] )) ||
_steamship__subcmd__help__subcmd__text_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help text commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__upload_commands] )) ||
_steamship__subcmd__help__subcmd__upload_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help upload commands' commands "$@"
}
(( $+functions[_steamship__subcmd__help__subcmd__workshop_commands] )) ||
_steamship__subcmd__help__subcmd__workshop_commands() {
    local commands; commands=()
    _describe -t commands 'steamship help workshop commands' commands "$@"
}
(( $+functions[_steamship__subcmd__init_commands] )) ||
_steamship__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'steamship init commands' commands "$@"
}
(( $+functions[_steamship__subcmd__install_commands] )) ||
_steamship__subcmd__install_commands() {
    local commands; commands=()
    _describe -t commands 'steamship install commands' commands "$@"
}
(( $+functions[_steamship__subcmd__languages_commands] )) ||
_steamship__subcmd__languages_commands() {
    local commands; commands=()
    _describe -t commands 'steamship languages commands' commands "$@"
}
(( $+functions[_steamship__subcmd__leaderboards_commands] )) ||
_steamship__subcmd__leaderboards_commands() {
    local commands; commands=()
    _describe -t commands 'steamship leaderboards commands' commands "$@"
}
(( $+functions[_steamship__subcmd__login_commands] )) ||
_steamship__subcmd__login_commands() {
    local commands; commands=()
    _describe -t commands 'steamship login commands' commands "$@"
}
(( $+functions[_steamship__subcmd__logout_commands] )) ||
_steamship__subcmd__logout_commands() {
    local commands; commands=()
    _describe -t commands 'steamship logout commands' commands "$@"
}
(( $+functions[_steamship__subcmd__promote_commands] )) ||
_steamship__subcmd__promote_commands() {
    local commands; commands=()
    _describe -t commands 'steamship promote commands' commands "$@"
}
(( $+functions[_steamship__subcmd__rich-presence_commands] )) ||
_steamship__subcmd__rich-presence_commands() {
    local commands; commands=()
    _describe -t commands 'steamship rich-presence commands' commands "$@"
}
(( $+functions[_steamship__subcmd__rollback_commands] )) ||
_steamship__subcmd__rollback_commands() {
    local commands; commands=()
    _describe -t commands 'steamship rollback commands' commands "$@"
}
(( $+functions[_steamship__subcmd__self_commands] )) ||
_steamship__subcmd__self_commands() {
    local commands; commands=(
'check:Check that this steamship is its release'\''s own binary, byte for byte' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'steamship self commands' commands "$@"
}
(( $+functions[_steamship__subcmd__self__subcmd__check_commands] )) ||
_steamship__subcmd__self__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'steamship self check commands' commands "$@"
}
(( $+functions[_steamship__subcmd__self__subcmd__help_commands] )) ||
_steamship__subcmd__self__subcmd__help_commands() {
    local commands; commands=(
'check:Check that this steamship is its release'\''s own binary, byte for byte' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'steamship self help commands' commands "$@"
}
(( $+functions[_steamship__subcmd__self__subcmd__help__subcmd__check_commands] )) ||
_steamship__subcmd__self__subcmd__help__subcmd__check_commands() {
    local commands; commands=()
    _describe -t commands 'steamship self help check commands' commands "$@"
}
(( $+functions[_steamship__subcmd__self__subcmd__help__subcmd__help_commands] )) ||
_steamship__subcmd__self__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'steamship self help help commands' commands "$@"
}
(( $+functions[_steamship__subcmd__settings_commands] )) ||
_steamship__subcmd__settings_commands() {
    local commands; commands=()
    _describe -t commands 'steamship settings commands' commands "$@"
}
(( $+functions[_steamship__subcmd__status_commands] )) ||
_steamship__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'steamship status commands' commands "$@"
}
(( $+functions[_steamship__subcmd__text_commands] )) ||
_steamship__subcmd__text_commands() {
    local commands; commands=()
    _describe -t commands 'steamship text commands' commands "$@"
}
(( $+functions[_steamship__subcmd__upload_commands] )) ||
_steamship__subcmd__upload_commands() {
    local commands; commands=()
    _describe -t commands 'steamship upload commands' commands "$@"
}
(( $+functions[_steamship__subcmd__workshop_commands] )) ||
_steamship__subcmd__workshop_commands() {
    local commands; commands=()
    _describe -t commands 'steamship workshop commands' commands "$@"
}

if [ "$funcstack[1]" = "_steamship" ]; then
    _steamship "$@"
else
    compdef _steamship steamship
fi
