#compdef buck2 buck
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the MIT license found in the
# LICENSE-MIT file in the root directory of this source tree and the Apache
# License, Version 2.0 found in the LICENSE-APACHE file in the root directory
# of this source tree.


# clap_complete generated content BEGINS
#compdef buck2

autoload -U is-at-least

_buck2() {
    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[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_buck2_commands" \
"*::: :->buck2" \
&& ret=0
    case $state in
    (buck2)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-command-$line[1]:"
        case $line[1] in
            (daemon)
_arguments "${_arguments_options[@]}" : \
'--checker-interval-seconds=[Sets the interval for how often the daemon performs consistency checks. These are used to ensure that the daemon is still the one referenced by files in the daemon dir]:CHECKER_INTERVAL_SECONDS:_default' \
'--reject-materializer-state=[If passed a given materializer identity, if the materializer state DB matches that identity, the daemon will not use it and will instead create a new empty materializer state]:REJECT_MATERIALIZER_STATE:_default' \
'--daemon-originating-cgroup=[The cgroup path of the process that launched this daemon before Buck moved the daemon into its managed cgroup]:DAEMON_ORIGINATING_CGROUP:_default' \
'--daemon-id=[The daemon id that has been assigned to this daemon]:DAEMON_ID:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--dont-daemonize[Run buck daemon but do not daemonize the process]' \
'--skip-macos-qos[This flag is set to prevent infinite recursion when the process is restarted with lower priority]' \
'--enable-trace-io[]' \
'--has-cgroup[If set, indicates that this daemon is running in dedicated cgroup]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':daemon_startup_config -- Early configs that the daemon needs at startup. Those are read by the client then passed to the daemon. The client will restart the daemon if they mismatch:_default' \
&& ret=0
;;
(forkserver)
_arguments "${_arguments_options[@]}" : \
'--fd=[File descriptor to use for the communication channel]:FD:_default' \
'--socket-path=[Path to the socket to use for the communication channel]:SOCKET_PATH:_default' \
'--state-dir=[]:STATE_DIR:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(internal-test-runner)
_arguments "${_arguments_options[@]}" : \
'--executor-fd=[]:EXECUTOR_FD:_default' \
'--orchestrator-fd=[]:ORCHESTRATOR_FD:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::args:_default' \
&& ret=0
;;
(audit)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_buck2__subcmd__audit_commands" \
"*::: :->audit" \
&& ret=0

    case $state in
    (audit)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-audit-command-$line[1]:"
        case $line[1] in
            (cell)
_arguments "${_arguments_options[@]}" : \
'--target-platforms=[This option is not used]:PLATFORM:_default' \
'*-m+[This option is not used]:VALUE:_default' \
'*--modifier=[This option is not used]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--json[Output in JSON format]' \
'--paths-only[Don'\''t include the cell name in the output]' \
'--aliases[If enabled and no explicit aliases are passed, will query for all aliases in the working directory cell.]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::CELL_ALIASES -- Cell aliases to query. These aliases will be resolved in the working directory cell.:_default' \
&& ret=0
;;
(file-package)
_arguments "${_arguments_options[@]}" : \
'--target-platforms=[This option is not used]:PLATFORM:_default' \
'*-m+[This option is not used]:VALUE:_default' \
'*--modifier=[This option is not used]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--json[Output in JSON format]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::PATHS -- File paths to resolve to package names (build files, directories, or any source files):_default' \
&& ret=0
;;
(classpath)
_arguments "${_arguments_options[@]}" : \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--json[Output in JSON format]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::TARGET_PATTERNS -- Target patterns to audit:_default' \
&& ret=0
;;
(config)
_arguments "${_arguments_options[@]}" : \
'--cell=[Query config for a specific cell (default\: the cell of the current working directory)]:CELL:_default' \
'(--json)--output-format=[Output format]:OUTPUT_FORMAT:(simple inline_section json)' \
'--location=[Show where config values are defined]:LOCATION_STYLE:(none direct extended)' \
'--value=[Show resolved values, raw (pre-substitution) values, or both]:VALUE_STYLE:(resolved raw both)' \
'--target-platforms=[This option is not used]:PLATFORM:_default' \
'*-m+[This option is not used]:VALUE:_default' \
'*--modifier=[This option is not used]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'(--cell)--all-cells[Produce information for all cells]' \
'(--output-format)--json[Output in JSON format (shorthand for \`--output-format=json\`)]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::SPECS -- config section/key specs of the form `section` or `section.key`. If any specs are provided, only values matching a spec will be printed (section headers will be printed only for sections with a key matching the spec):_default' \
&& ret=0
;;
(configurations)
_arguments "${_arguments_options[@]}" : \
'--target-platforms=[This option is not used]:PLATFORM:_default' \
'*-m+[This option is not used]:VALUE:_default' \
'*--modifier=[This option is not used]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::configurations -- configurations to audit (example\: `cell//package\:target-105fe3389fc7e436`). If none provided, will print information about all known configurations.:_default' \
&& ret=0
;;
(includes)
_arguments "${_arguments_options[@]}" : \
'--target-platforms=[This option is not used]:PLATFORM:_default' \
'*-m+[This option is not used]:VALUE:_default' \
'*--modifier=[This option is not used]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--json[Print json representation of outputs]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::BUILD_FILES -- Build files to audit. These are expected to be relative paths from the working dir cell.:_default' \
&& ret=0
;;
(prelude)
_arguments "${_arguments_options[@]}" : \
'--target-platforms=[This option is not used]:PLATFORM:_default' \
'*-m+[This option is not used]:VALUE:_default' \
'*--modifier=[This option is not used]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(providers)
_arguments "${_arguments_options[@]}" : \
'(-l --list --print-debug --quiet)*-p+[Print only the named provider(s)]:PROVIDER:_default' \
'(-l --list --print-debug --quiet)*--provider=[Print only the named provider(s)]:PROVIDER:_default' \
'*-u+[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'*--target-universe=[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'(-l --list --print-debug -p --provider)--quiet[]' \
'(--print-debug --quiet -p --provider)-l[List the available providers]' \
'(--print-debug --quiet -p --provider)--list[List the available providers]' \
'(-l --list --quiet -p --provider)--print-debug[Print the providers using debug format (very verbose)]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::TARGET_PATTERNS -- Patterns to analyze:_default' \
&& ret=0
;;
(subtargets)
_arguments "${_arguments_options[@]}" : \
'*-u+[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'*--target-universe=[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--shallow[Do not recursively print all nested subtargets; print only the first level. This is set to false by default]' \
'--json[Print subtargets as JSON]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::TARGET_PATTERNS -- Patterns to analyze:_default' \
&& ret=0
;;
(analysis-queries)
_arguments "${_arguments_options[@]}" : \
'*-u+[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'*--target-universe=[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--include-outputs[Enable to print the outputs for the targets in the resolved queries]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::TARGET_PATTERNS -- Patterns to evaluate. The query attributes for targets matching these patterns will be evaluated:_default' \
&& ret=0
;;
(execution-platform-resolution)
_arguments "${_arguments_options[@]}" : \
'*-u+[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'*--target-universe=[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::TARGET_PATTERNS -- Patterns to analyze:_default' \
&& ret=0
;;
(visibility)
_arguments "${_arguments_options[@]}" : \
'--target-platforms=[This option is not used]:PLATFORM:_default' \
'*-m+[This option is not used]:VALUE:_default' \
'*--modifier=[This option is not used]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::TARGET_PATTERNS -- Target pattern(s) to analyze.:_default' \
&& ret=0
;;
(starlark)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_buck2__subcmd__audit__subcmd__starlark_commands" \
"*::: :->starlark" \
&& ret=0

    case $state in
    (starlark)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-audit-starlark-command-$line[1]:"
        case $line[1] in
            (module)
_arguments "${_arguments_options[@]}" : \
'--target-platforms=[This option is not used]:PLATFORM:_default' \
'*-m+[This option is not used]:VALUE:_default' \
'*--modifier=[This option is not used]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':IMPORT_PATH -- Module import path:_default' \
&& ret=0
;;
(package-deps)
_arguments "${_arguments_options[@]}" : \
'--target-platforms=[This option is not used]:PLATFORM:_default' \
'*-m+[This option is not used]:VALUE:_default' \
'*--modifier=[This option is not used]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':PACKAGE -- Package:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__audit__subcmd__starlark__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-audit-starlark-help-command-$line[1]:"
        case $line[1] in
            (module)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(package-deps)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(dep-files)
_arguments "${_arguments_options[@]}" : \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':pattern -- Target to query dep files for:_default' \
':category -- Action category:_default' \
'::identifier -- Action identifier:_default' \
&& ret=0
;;
(deferred-materializer)
_arguments "${_arguments_options[@]}" : \
'--target-platforms=[This option is not used]:PLATFORM:_default' \
'*-m+[This option is not used]:VALUE:_default' \
'*--modifier=[This option is not used]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_buck2__subcmd__audit__subcmd__deferred-materializer_commands" \
"*::: :->deferred-materializer" \
&& ret=0

    case $state in
    (deferred-materializer)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-audit-deferred-materializer-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(list-subscriptions)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(fsck)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(refresh)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':min_ttl -- Minimum TTL to require for actions:_default' \
&& ret=0
;;
(get-refresh-log)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(test-iter)
_arguments "${_arguments_options[@]}" : \
'--count=[]:COUNT:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(flush-access-times)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-audit-deferred-materializer-help-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list-subscriptions)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fsck)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(refresh)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(get-refresh-log)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(test-iter)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(flush-access-times)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(output)
_arguments "${_arguments_options[@]}" : \
'*-a+[Regular expressions to match attributes. Regular expressions are used in "search" mode, so for example empty string matches all attributes including special attributes]:ATTRIBUTE:_default' \
'*--output-attribute=[Regular expressions to match attributes. Regular expressions are used in "search" mode, so for example empty string matches all attributes including special attributes]:ATTRIBUTE:_default' \
'*--output-attributes=[Deprecated\: Use \`--output-attribute\` instead]:ATTRIBUTE:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--json[]' \
'-A[Output all attributes, equivalent of --output-attribute '\'''\'']' \
'--output-all-attributes[Output all attributes, equivalent of --output-attribute '\'''\'']' \
'-B[Output basic attributes, namely those the user can supply, plus rule type and package name]' \
'--output-basic-attributes[Output basic attributes, namely those the user can supply, plus rule type and package name]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':OUTPUT_PATH -- The buck-out path to the build artifact, starting with `buck-out` and including the configuration platform.:_default' \
&& ret=0
;;
(parse)
_arguments "${_arguments_options[@]}" : \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--target-platforms=[This option is not used]:PLATFORM:_default' \
'*-m+[This option is not used]:VALUE:_default' \
'*--modifier=[This option is not used]:VALUE:_default' \
'*--output-attribute=[]:OUTPUT_ATTRIBUTE:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--json[]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':OUTPUT_PATH -- The buck-out path to the build artifact, starting with `buck-out` and including the configuration platform.:_default' \
&& ret=0
;;
(package-values)
_arguments "${_arguments_options[@]}" : \
'--target-platforms=[This option is not used]:PLATFORM:_default' \
'*-m+[This option is not used]:VALUE:_default' \
'*--modifier=[This option is not used]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::packages -- Package names to inspect (like `//foo/bar`, no trailing colon):_default' \
&& ret=0
;;
(perf)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_buck2__subcmd__audit__subcmd__perf_commands" \
"*::: :->perf" \
&& ret=0

    case $state in
    (perf)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-audit-perf-command-$line[1]:"
        case $line[1] in
            (configured-graph-size)
_arguments "${_arguments_options[@]}" : \
'*-u+[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'*--target-universe=[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--json[]' \
'--sketch[whether to compute sketch or not]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::TARGET_PATTERNS -- Target patterns to audit:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__audit__subcmd__perf__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-audit-perf-help-command-$line[1]:"
        case $line[1] in
            (configured-graph-size)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__audit__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-audit-help-command-$line[1]:"
        case $line[1] in
            (cell)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(file-package)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(classpath)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(config)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(configurations)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(includes)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(prelude)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(providers)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(subtargets)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(analysis-queries)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(execution-platform-resolution)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(visibility)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(starlark)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__audit__subcmd__help__subcmd__starlark_commands" \
"*::: :->starlark" \
&& ret=0

    case $state in
    (starlark)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-audit-help-starlark-command-$line[1]:"
        case $line[1] in
            (module)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(package-deps)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(dep-files)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(deferred-materializer)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer_commands" \
"*::: :->deferred-materializer" \
&& ret=0

    case $state in
    (deferred-materializer)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-audit-help-deferred-materializer-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list-subscriptions)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fsck)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(refresh)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(get-refresh-log)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(test-iter)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(flush-access-times)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(output)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(parse)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(package-values)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(perf)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__audit__subcmd__help__subcmd__perf_commands" \
"*::: :->perf" \
&& ret=0

    case $state in
    (perf)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-audit-help-perf-command-$line[1]:"
        case $line[1] in
            (configured-graph-size)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(aquery)
_arguments "${_arguments_options[@]}" : \
'*-a+[Regular expressions to match attributes. Regular expressions are used in "search" mode, so for example empty string matches all attributes including special attributes]:ATTRIBUTE:_default' \
'*--output-attribute=[Regular expressions to match attributes. Regular expressions are used in "search" mode, so for example empty string matches all attributes including special attributes]:ATTRIBUTE:_default' \
'*--output-attributes=[Deprecated\: Use \`--output-attribute\` instead]:ATTRIBUTE:_default' \
'--output-format=[Output format (default\: list).]:dot|dot_compact|json|starlark|html:(dot json dot_compact starlark html)' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'-A[Output all attributes, equivalent of --output-attribute '\'''\'']' \
'--output-all-attributes[Output all attributes, equivalent of --output-attribute '\'''\'']' \
'-B[Output basic attributes, namely those the user can supply, plus rule type and package name]' \
'--output-basic-attributes[Output basic attributes, namely those the user can supply, plus rule type and package name]' \
'--json[Output in JSON format]' \
'--dot[Output in Graphviz Dot format]' \
'--dot-compact[Output in a more compact format than Graphviz Dot]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':QUERY -- the query to evaluate:_default' \
'*::QUERY_ARGS -- list of literals for a multi-query (one containing `%s` or `%Ss`):_default' \
&& ret=0
;;
(build)
_arguments "${_arguments_options[@]}" : \
'-M+[Materialize (or skip) the final artifacts, bypassing buckconfig.]:MATERIALIZATIONS:(all none)' \
'--materializations=[Materialize (or skip) the final artifacts, bypassing buckconfig.]:MATERIALIZATIONS:(all none)' \
'--upload-final-artifacts=[Upload (or skip) the final artifacts.]:UPLOAD_FINAL_ARTIFACTS:(always never)' \
'--out=[Copy the output of the built target to this path (\`-\` to stdout)]:OUTPUT_PATH:_default' \
'--build-report=[Print a build report]:PATH:_default' \
'*--enable-optional-validations=[Comma separated list of validation names to run that are marked optional]:VALIDATION_NAMES:_default' \
'*--build-report-options=[Comma separated list of build report options]:BUILD_REPORT_OPTIONS:_default' \
'--streaming-build-report=[Stream intermediary build reports to a file in json lines format]:PATH:_default' \
'-j+[Number of threads to use during execution (default is # cores)]:THREADS:_default' \
'--num-threads=[Number of threads to use during execution (default is # cores)]:THREADS:_default' \
'*-u+[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'*--target-universe=[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'--overall-timeout=[How long to run the command for. If the timeout is exceeded, Buck2 will exit as quickly as possible and not run further builds or tests]:TIMEOUT:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--show-output[Print the path to the output for each of the rules relative to the project root]' \
'--show-full-output[Print the absolute path to the output for each of the rules]' \
'--show-simple-output[Print only the path to the output for each of the rules relative to the project root]' \
'--show-full-simple-output[Print only the absolute path to the output for each of the rules]' \
'--show-json-output[Print the output paths relative to the project root, in JSON format]' \
'--show-full-json-output[Print the output absolute paths, in JSON format]' \
'--build-default-info[Build default info (this is the default)]' \
'--skip-default-info[Do not build default info (this is not the default)]' \
'--build-run-info[Build runtime dependencies (this is the default)]' \
'--skip-run-info[Do not build runtime dependencies (this is not the default)]' \
'--build-test-info[Build tests (this is not the default)]' \
'--skip-test-info[Do not build tests (this is the default)]' \
'--deep[This option does nothing. It is here to keep compatibility with Buck1 and ci]' \
'--local-only[Enable only local execution. Will reject actions that cannot execute locally]' \
'--remote-only[Enable only remote execution. Will reject actions that cannot execute remotely]' \
'--prefer-local[Enable hybrid execution. Will prefer executing actions that can execute locally on the local host]' \
'--prefer-remote[Enable hybrid execution. Will prefer executing actions that can execute remotely on RE and will avoid racing local and remote execution]' \
'--unstable-no-execution[Experimental\: Disable all execution]' \
'--no-remote-cache[Do not perform remote cache queries or cache writes. If remote execution is enabled, the RE service might still deduplicate actions, so for e.g. benchmarking, using a random isolation dir is preferred]' \
'--write-to-cache-anyway[Could be used to enable the action cache writes on the RE worker when no_remote_cache is specified]' \
'--eager-dep-files[Process dep files when they are generated (i.e. after running a command that produces dep files), rather than when they are used (i.e. before re-running a command that previously produced dep files). Use this when debugging commands that produce dep files. Note that commands that previously produced dep files will not re-run\: only dep files produced during this command will be eagerly loaded]' \
'--upload-all-actions[Uploads every action to the RE service, regardless of whether the action needs to execute on RE]' \
'--fail-fast[If Buck hits an error, do as little work as possible before exiting]' \
'--keep-going[If Buck hits an error, continue doing as much work as possible before exiting]' \
'--skip-missing-targets[If target is missing, then skip building instead of throwing error]' \
'--skip-incompatible-targets[If target is incompatible with the specified configuration, skip building instead of throwing error. This does not apply to targets specified with glob patterns \`/...\` or \`\:\` which are skipped unconditionally]' \
'--materialize-failed-inputs[Materializes inputs for failed actions which ran on RE]' \
'--materialize-failed-outputs[Materializes outputs (if present) for failed actions which ran on RE]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::TARGET_PATTERNS -- Patterns to build:' \
&& ret=0
;;
(bxl)
_arguments "${_arguments_options[@]}" : \
'-M+[Materialize (or skip) the final artifacts, bypassing buckconfig.]:MATERIALIZATIONS:(all none)' \
'--materializations=[Materialize (or skip) the final artifacts, bypassing buckconfig.]:MATERIALIZATIONS:(all none)' \
'--upload-final-artifacts=[Upload (or skip) the final artifacts.]:UPLOAD_FINAL_ARTIFACTS:(always never)' \
'--user-event-log=[Write user events to this log file. Both user and internal events are written to main event log. If this flag is specified, user events are additionally written to user event log. Log format is JSONL, uncompressed if no known extensions are detected, or you can explicitly specify the compression via the file extension (ex\: \`.json-lines.gz\` would be gzip compressed, \`.json-lines.zst\` would be zstd compressed). Resulting log is compatible with \`buck2 log show-user\`]:PATH:_default' \
'--build-report=[Print a build report]:PATH:_default' \
'*--enable-optional-validations=[Comma separated list of validation names to run that are marked optional]:VALIDATION_NAMES:_default' \
'*--build-report-options=[Comma separated list of build report options]:BUILD_REPORT_OPTIONS:_default' \
'--streaming-build-report=[Stream intermediary build reports to a file in json lines format]:PATH:_default' \
'-j+[Number of threads to use during execution (default is # cores)]:THREADS:_default' \
'--num-threads=[Number of threads to use during execution (default is # cores)]:THREADS:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--local-only[Enable only local execution. Will reject actions that cannot execute locally]' \
'--remote-only[Enable only remote execution. Will reject actions that cannot execute remotely]' \
'--prefer-local[Enable hybrid execution. Will prefer executing actions that can execute locally on the local host]' \
'--prefer-remote[Enable hybrid execution. Will prefer executing actions that can execute remotely on RE and will avoid racing local and remote execution]' \
'--unstable-no-execution[Experimental\: Disable all execution]' \
'--no-remote-cache[Do not perform remote cache queries or cache writes. If remote execution is enabled, the RE service might still deduplicate actions, so for e.g. benchmarking, using a random isolation dir is preferred]' \
'--write-to-cache-anyway[Could be used to enable the action cache writes on the RE worker when no_remote_cache is specified]' \
'--eager-dep-files[Process dep files when they are generated (i.e. after running a command that produces dep files), rather than when they are used (i.e. before re-running a command that previously produced dep files). Use this when debugging commands that produce dep files. Note that commands that previously produced dep files will not re-run\: only dep files produced during this command will be eagerly loaded]' \
'--upload-all-actions[Uploads every action to the RE service, regardless of whether the action needs to execute on RE]' \
'--fail-fast[If Buck hits an error, do as little work as possible before exiting]' \
'--keep-going[If Buck hits an error, continue doing as much work as possible before exiting]' \
'--skip-missing-targets[If target is missing, then skip building instead of throwing error]' \
'--skip-incompatible-targets[If target is incompatible with the specified configuration, skip building instead of throwing error. This does not apply to targets specified with glob patterns \`/...\` or \`\:\` which are skipped unconditionally]' \
'--materialize-failed-inputs[Materializes inputs for failed actions which ran on RE]' \
'--materialize-failed-outputs[Materializes outputs (if present) for failed actions which ran on RE]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':BXL label -- The bxl function to execute as defined by the label of form `<cell>//path/file.bxl\:<function>`:_default' \
'*::BXL INPUT ARGS -- Arguments passed to the bxl script:_default' \
&& ret=0
;;
(help-env)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--self-testing[Also print those environment variables that are only used for buck2 integration tests]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(test)
_arguments "${_arguments_options[@]}" : \
'*--exclude=[Labels on targets to exclude from tests]:EXCLUDE:_default' \
'*--include=[Labels on targets to include from tests. Prefixing with \`!\` means to exclude. First match wins unless overridden by \`always-exclude\` flag. If include patterns are present, regardless of whether exclude patterns are present, then all targets are by default excluded unless explicitly included.]:INCLUDE:_default' \
'--test-executor-stdout=[Writes the test executor stdout to the provided path]:TEST_EXECUTOR_STDOUT:_default' \
'--test-executor-stderr=[Writes the test executor stderr to the provided path]:TEST_EXECUTOR_STDERR:_default' \
'--xml=[]:XML:_default' \
'--build-report=[Print a build report]:PATH:_default' \
'*--enable-optional-validations=[Comma separated list of validation names to run that are marked optional]:VALIDATION_NAMES:_default' \
'*--build-report-options=[Comma separated list of build report options]:BUILD_REPORT_OPTIONS:_default' \
'--streaming-build-report=[Stream intermediary build reports to a file in json lines format]:PATH:_default' \
'-j+[Number of threads to use during execution (default is # cores)]:THREADS:_default' \
'--num-threads=[Number of threads to use during execution (default is # cores)]:THREADS:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'--overall-timeout=[How long to run the command for. If the timeout is exceeded, Buck2 will exit as quickly as possible and not run further builds or tests]:TIMEOUT:_default' \
'--write-test-id=[Write the test session ID into this file]:PATH:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--always-exclude[Whether to always exclude if the label appears in \`exclude\`, regardless of which appears first]' \
'--build-filtered[Whether to build tests that are excluded via labels.]' \
'--unstable-allow-compatible-tests-on-re[Will allow tests that are compatible with RE (setup to run from the repo root and use relative paths) to run from RE]' \
'--unstable-allow-all-tests-on-re[Will run tests to on RE even if they are missing required settings (running from the root + relative paths). Those required settings just get overridden]' \
'--ignore-tests-attribute[Normally testing will follow the \`tests\` attribute of all targets, to find their associated tests. When passed, this flag will disable that, and only run the directly supplied targets]' \
'--build-default-info[Also build DefaultInfo provider, which is what \`buck2 build\` builds]' \
'--skip-default-info[Do not build DefaultInfo provider]' \
'--build-run-info[Also build RunInfo provider, which builds artifacts needed for \`buck2 run\`]' \
'--skip-run-info[Do not build RunInfo provider]' \
'--deep[This option does nothing. It is here to keep compatibility with Buck1 and ci]' \
'--local-only[Enable only local execution. Will reject actions that cannot execute locally]' \
'--remote-only[Enable only remote execution. Will reject actions that cannot execute remotely]' \
'--prefer-local[Enable hybrid execution. Will prefer executing actions that can execute locally on the local host]' \
'--prefer-remote[Enable hybrid execution. Will prefer executing actions that can execute remotely on RE and will avoid racing local and remote execution]' \
'--unstable-no-execution[Experimental\: Disable all execution]' \
'--no-remote-cache[Do not perform remote cache queries or cache writes. If remote execution is enabled, the RE service might still deduplicate actions, so for e.g. benchmarking, using a random isolation dir is preferred]' \
'--write-to-cache-anyway[Could be used to enable the action cache writes on the RE worker when no_remote_cache is specified]' \
'--eager-dep-files[Process dep files when they are generated (i.e. after running a command that produces dep files), rather than when they are used (i.e. before re-running a command that previously produced dep files). Use this when debugging commands that produce dep files. Note that commands that previously produced dep files will not re-run\: only dep files produced during this command will be eagerly loaded]' \
'--upload-all-actions[Uploads every action to the RE service, regardless of whether the action needs to execute on RE]' \
'--fail-fast[If Buck hits an error, do as little work as possible before exiting]' \
'--keep-going[If Buck hits an error, continue doing as much work as possible before exiting]' \
'--skip-missing-targets[If target is missing, then skip building instead of throwing error]' \
'--skip-incompatible-targets[If target is incompatible with the specified configuration, skip building instead of throwing error. This does not apply to targets specified with glob patterns \`/...\` or \`\:\` which are skipped unconditionally]' \
'--materialize-failed-inputs[Materializes inputs for failed actions which ran on RE]' \
'--materialize-failed-outputs[Materializes outputs (if present) for failed actions which ran on RE]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::TARGET_PATTERNS -- Patterns to test:' \
&& ret=0
;;
(cquery)
_arguments "${_arguments_options[@]}" : \
'*-a+[Regular expressions to match attributes. Regular expressions are used in "search" mode, so for example empty string matches all attributes including special attributes]:ATTRIBUTE:_default' \
'*--output-attribute=[Regular expressions to match attributes. Regular expressions are used in "search" mode, so for example empty string matches all attributes including special attributes]:ATTRIBUTE:_default' \
'*--output-attributes=[Deprecated\: Use \`--output-attribute\` instead]:ATTRIBUTE:_default' \
'--output-format=[Output format (default\: list).]:dot|dot_compact|json|starlark|html:(dot json dot_compact starlark html)' \
'*-u+[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'*--target-universe=[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--profile-mode=[Profile target loading]:PROFILE_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--profile-output=[Where to write profile output]:PROFILE_OUTPUT:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'-A[Output all attributes, equivalent of --output-attribute '\'''\'']' \
'--output-all-attributes[Output all attributes, equivalent of --output-attribute '\'''\'']' \
'-B[Output basic attributes, namely those the user can supply, plus rule type and package name]' \
'--output-basic-attributes[Output basic attributes, namely those the user can supply, plus rule type and package name]' \
'--json[Output in JSON format]' \
'--dot[Output in Graphviz Dot format]' \
'--dot-compact[Output in a more compact format than Graphviz Dot]' \
'--show-providers[Show the providers of the query result instead of the attributes and labels]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':QUERY -- the query to evaluate:_default' \
'*::QUERY_ARGS -- list of literals for a multi-query (one containing `%s` or `%Ss`):_default' \
&& ret=0
;;
(init)
_arguments "${_arguments_options[@]}" : \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-prelude[Don'\''t include the standard prelude or generate toolchain definitions]' \
'--allow-dirty[Initialize the project even if the git repo at \\\[PATH\\\] has uncommitted changes]' \
'--git[Also initialize a git repository at the given path, and set up an appropriate \`.gitignore\` file]' \
'--no-interactive-console[Disable console interactions]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- The path to initialize the project in. The folder does not need to exist:_default' \
&& ret=0
;;
(explain)
_arguments "${_arguments_options[@]}" : \
'-o+[Output file path for profile data]:OUTPUT:_default' \
'--output=[Output file path for profile data]:OUTPUT:_default' \
'--fbs-dump=[Dev only\: dump the flatbuffer info to file path]:FBS_DUMP:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--upload[Whether to upload the output to Manifold Deprecated\: now we always upload to Manifold, this flag is a no-op]' \
'--stack[Add target code pointer. This invalidates cache, slowing things down]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(expand-external-cell)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'()--all-cells[Expand all cells that Buck2 knows about]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::cells:_default' \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
'-s+[Use Android device or emulator with specific serial or UDID number. Here for compatibility with buck1 - it is automatically forwarded to the installer]:SERIAL:_default' \
'--serial=[Use Android device or emulator with specific serial or UDID number. Here for compatibility with buck1 - it is automatically forwarded to the installer]:SERIAL:_default' \
'-a+[Android activity to launch e.g. com.facebook/.LoginActivity. Implies -r. Here for compatibility with buck1 - it is automatically forwarded to the installer]:ACTIVITY:_default' \
'--activity=[Android activity to launch e.g. com.facebook/.LoginActivity. Implies -r. Here for compatibility with buck1 - it is automatically forwarded to the installer]:ACTIVITY:_default' \
'-i+[Android Intent URI to launch e.g. fb\://profile. Implies -r. Here for compatibility with buck1 - it is automatically forwarded to the installer]:INTENT_URI:_default' \
'--intent-uri=[Android Intent URI to launch e.g. fb\://profile. Implies -r. Here for compatibility with buck1 - it is automatically forwarded to the installer]:INTENT_URI:_default' \
'--build-report=[Print a build report]:PATH:_default' \
'*--enable-optional-validations=[Comma separated list of validation names to run that are marked optional]:VALIDATION_NAMES:_default' \
'*--build-report-options=[Comma separated list of build report options]:BUILD_REPORT_OPTIONS:_default' \
'--streaming-build-report=[Stream intermediary build reports to a file in json lines format]:PATH:_default' \
'-j+[Number of threads to use during execution (default is # cores)]:THREADS:_default' \
'--num-threads=[Number of threads to use during execution (default is # cores)]:THREADS:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--installer-debug[Prints installer output to stderr. It might break superconsole]' \
'-r[Run an Android activity. Here for compatibility with buck1 - it is automatically forwarded to the installer]' \
'--run[Run an Android activity. Here for compatibility with buck1 - it is automatically forwarded to the installer]' \
'-e[Use this option to use emulators only on Android. Here for compatibility with buck1 - it is automatically forwarded to the installer]' \
'--emulator[Use this option to use emulators only on Android. Here for compatibility with buck1 - it is automatically forwarded to the installer]' \
'-d[Use this option to use real devices only on Android. Here for compatibility with buck1 - it is automatically forwarded to the installer]' \
'--device[Use this option to use real devices only on Android. Here for compatibility with buck1 - it is automatically forwarded to the installer]' \
'-x[Use all connected Android devices and/or emulators (multi-install mode). Here for compatibility with buck1 - it is automatically forwarded to the installer]' \
'--all-devices[Use all connected Android devices and/or emulators (multi-install mode). Here for compatibility with buck1 - it is automatically forwarded to the installer]' \
'-w[Have the launched Android process wait for the debugger. Here for compatibility with buck1 - it is automatically forwarded to the installer]' \
'--wait-for-debugger[Have the launched Android process wait for the debugger. Here for compatibility with buck1 - it is automatically forwarded to the installer]' \
'-u[Use this option to uninstall an installed app before installing again. Here for compatibility with buck1 - it is automatically forwarded to the installer]' \
'--uninstall[Use this option to uninstall an installed app before installing again. Here for compatibility with buck1 - it is automatically forwarded to the installer]' \
'-k[Use this option to Keep user data when uninstalling. Here for compatibility with buck1 - it is automatically forwarded to the installer]' \
'--keep[Use this option to Keep user data when uninstalling. Here for compatibility with buck1 - it is automatically forwarded to the installer]' \
'--local-only[Enable only local execution. Will reject actions that cannot execute locally]' \
'--remote-only[Enable only remote execution. Will reject actions that cannot execute remotely]' \
'--prefer-local[Enable hybrid execution. Will prefer executing actions that can execute locally on the local host]' \
'--prefer-remote[Enable hybrid execution. Will prefer executing actions that can execute remotely on RE and will avoid racing local and remote execution]' \
'--unstable-no-execution[Experimental\: Disable all execution]' \
'--no-remote-cache[Do not perform remote cache queries or cache writes. If remote execution is enabled, the RE service might still deduplicate actions, so for e.g. benchmarking, using a random isolation dir is preferred]' \
'--write-to-cache-anyway[Could be used to enable the action cache writes on the RE worker when no_remote_cache is specified]' \
'--eager-dep-files[Process dep files when they are generated (i.e. after running a command that produces dep files), rather than when they are used (i.e. before re-running a command that previously produced dep files). Use this when debugging commands that produce dep files. Note that commands that previously produced dep files will not re-run\: only dep files produced during this command will be eagerly loaded]' \
'--upload-all-actions[Uploads every action to the RE service, regardless of whether the action needs to execute on RE]' \
'--fail-fast[If Buck hits an error, do as little work as possible before exiting]' \
'--keep-going[If Buck hits an error, continue doing as much work as possible before exiting]' \
'--skip-missing-targets[If target is missing, then skip building instead of throwing error]' \
'--skip-incompatible-targets[If target is incompatible with the specified configuration, skip building instead of throwing error. This does not apply to targets specified with glob patterns \`/...\` or \`\:\` which are skipped unconditionally]' \
'--materialize-failed-inputs[Materializes inputs for failed actions which ran on RE]' \
'--materialize-failed-outputs[Materializes outputs (if present) for failed actions which ran on RE]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::TARGET -- Target to build and install:' \
&& ret=0
;;
(kill)
_arguments "${_arguments_options[@]}" : \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(killall)
_arguments "${_arguments_options[@]}" : \
'--in-isolation-dir=[Only kill buck2 processes using this isolation dir]:ISOLATION_DIR:_default' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--repo[Only kill buck2 processes running in the current repository (project root)]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(root)
_arguments "${_arguments_options[@]}" : \
'-k+[which root to print]:KIND:(cell project daemon)' \
'--kind=[which root to print]:KIND:(cell project daemon)' \
'--dir=[determine the root for a specific directory (if not provided, finds the root for the current directory)]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(query)
_arguments "${_arguments_options[@]}" : \
'*-a+[Regular expressions to match attributes. Regular expressions are used in "search" mode, so for example empty string matches all attributes including special attributes]:ATTRIBUTE:_default' \
'*--output-attribute=[Regular expressions to match attributes. Regular expressions are used in "search" mode, so for example empty string matches all attributes including special attributes]:ATTRIBUTE:_default' \
'*--output-attributes=[Deprecated\: Use \`--output-attribute\` instead]:ATTRIBUTE:_default' \
'--output-format=[Output format (default\: list).]:dot|dot_compact|json|starlark|html:(dot json dot_compact starlark html)' \
'--target-platforms=[This option is not used]:PLATFORM:_default' \
'*-m+[This option is not used]:VALUE:_default' \
'*--modifier=[This option is not used]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'-A[Output all attributes, equivalent of --output-attribute '\'''\'']' \
'--output-all-attributes[Output all attributes, equivalent of --output-attribute '\'''\'']' \
'-B[Output basic attributes, namely those the user can supply, plus rule type and package name]' \
'--output-basic-attributes[Output basic attributes, namely those the user can supply, plus rule type and package name]' \
'--json[Output in JSON format]' \
'--dot[Output in Graphviz Dot format]' \
'--dot-compact[Output in a more compact format than Graphviz Dot]' \
'--allow-partial-graph[Allows querying the best-effort partial graph instead of aborting on the first error by skipping nodes that fail to load and edges that point to them. This only applies to the open-ended parts of the graph, e.g. an \`rdeps(//foo/...\` pattern or traversal between two explicit points. An explicit target literal given must resolve, e.g. \`rdeps(//foo\:bar, //baz\:lib)\` will still fail if \`//foo\:bar\` or \`//baz\:lib\` is missing or broken]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':QUERY -- the query to evaluate:_default' \
'*::QUERY_ARGS -- list of literals for a multi-query (one containing `%s` or `%Ss`):_default' \
&& ret=0
;;
(run)
_arguments "${_arguments_options[@]}" : \
'--command-args-file=[Write the command to a file instead of executing it.]:COMMAND_ARGS_FILE:_default' \
'--chdir=[Set the current working directory of the executable being run]:CHDIR:_default' \
'--build-report=[Print a build report]:PATH:_default' \
'*--enable-optional-validations=[Comma separated list of validation names to run that are marked optional]:VALIDATION_NAMES:_default' \
'*--build-report-options=[Comma separated list of build report options]:BUILD_REPORT_OPTIONS:_default' \
'--streaming-build-report=[Stream intermediary build reports to a file in json lines format]:PATH:_default' \
'-j+[Number of threads to use during execution (default is # cores)]:THREADS:_default' \
'--num-threads=[Number of threads to use during execution (default is # cores)]:THREADS:_default' \
'*-u+[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'*--target-universe=[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--emit-shell[Instead of running the command, print out the command formatted for shell interpolation, use as\: \$(buck2 run --emit-shell ...)]' \
'--local-only[Enable only local execution. Will reject actions that cannot execute locally]' \
'--remote-only[Enable only remote execution. Will reject actions that cannot execute remotely]' \
'--prefer-local[Enable hybrid execution. Will prefer executing actions that can execute locally on the local host]' \
'--prefer-remote[Enable hybrid execution. Will prefer executing actions that can execute remotely on RE and will avoid racing local and remote execution]' \
'--unstable-no-execution[Experimental\: Disable all execution]' \
'--no-remote-cache[Do not perform remote cache queries or cache writes. If remote execution is enabled, the RE service might still deduplicate actions, so for e.g. benchmarking, using a random isolation dir is preferred]' \
'--write-to-cache-anyway[Could be used to enable the action cache writes on the RE worker when no_remote_cache is specified]' \
'--eager-dep-files[Process dep files when they are generated (i.e. after running a command that produces dep files), rather than when they are used (i.e. before re-running a command that previously produced dep files). Use this when debugging commands that produce dep files. Note that commands that previously produced dep files will not re-run\: only dep files produced during this command will be eagerly loaded]' \
'--upload-all-actions[Uploads every action to the RE service, regardless of whether the action needs to execute on RE]' \
'--fail-fast[If Buck hits an error, do as little work as possible before exiting]' \
'--keep-going[If Buck hits an error, continue doing as much work as possible before exiting]' \
'--skip-missing-targets[If target is missing, then skip building instead of throwing error]' \
'--skip-incompatible-targets[If target is incompatible with the specified configuration, skip building instead of throwing error. This does not apply to targets specified with glob patterns \`/...\` or \`\:\` which are skipped unconditionally]' \
'--materialize-failed-inputs[Materializes inputs for failed actions which ran on RE]' \
'--materialize-failed-outputs[Materializes outputs (if present) for failed actions which ran on RE]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':TARGET -- Target to build and run:' \
'*::TARGET_ARGS -- Additional arguments passed to the target when running it:_default' \
&& ret=0
;;
(server)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--status[Print buckd status as JSON after ensuring the server is running.]' \
'--snapshot[Whether to include a state snapshot in the JSON status output.]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--snapshot[Whether to include a state snapshot in the output.]' \
'--all[Enable printing status for all running buckd]' \
'--include-tokio-runtime-metrics[Enable printing metrics from the Tokio runtime]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(starlark)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_buck2__subcmd__starlark_commands" \
"*::: :->starlark" \
&& ret=0

    case $state in
    (starlark)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-starlark-command-$line[1]:"
        case $line[1] in
            (lint)
_arguments "${_arguments_options[@]}" : \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::paths:_default' \
&& ret=0
;;
(typecheck)
_arguments "${_arguments_options[@]}" : \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::paths:_default' \
&& ret=0
;;
(debug-attach)
_arguments "${_arguments_options[@]}" : \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__starlark__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-starlark-help-command-$line[1]:"
        case $line[1] in
            (lint)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(typecheck)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(debug-attach)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(targets)
_arguments "${_arguments_options[@]}" : \
'(--streaming)--target-hash-file-mode=[Modifies computation of target hashes. If set to \`PATHS_AND_CONTENTS\` (the default), the contents of all files referenced from the targets will be used to compute the target hash. If set to \`PATHS_ONLY\`, only files'\'' paths contribute to the hash. If set to \`NONE\` no files will be used. See also --target-hash-modified-paths]:TARGET_HASH_FILE_MODE:(paths_only paths_and_contents none)' \
'(--streaming)*--target-hash-modified-paths=[Modifies computation of target hashes. Only effective when --target-hash-file-mode is set to \`PATHS_ONLY\`. If a target or its dependencies reference a file from this set, the target'\''s hash will be different than if this option was omitted. Otherwise, the target'\''s hash will be the same as if this option was omitted]:TARGET_HASH_MODIFIED_PATHS:_default' \
'--target-hash-function=[Selects either the "fast" or the "strong" target hash function to be used for computing target hashes. While we don'\''t specify the exact algorithm, the "strong" algorithm should be a reasonable cryptographic hash (ex. blake3) while the "fast" function will likely be a non-crypto hash. Both functions are guaranteed to be deterministic and to have the same value across different platforms/architectures]:TARGET_HASH_FUNCTION:(sha1 sha256 murmur-hash3 fast strong)' \
'(--streaming)--target-hash-recursive=[When true, emit the hash or target node and all dependencies recursively. When false, hash only the target node]:TARGET_HASH_RECURSIVE:(true false)' \
'*-a+[Regular expressions to match attributes. Regular expressions are used in "search" mode, so for example empty string matches all attributes including special attributes]:ATTRIBUTE:_default' \
'*--output-attribute=[Regular expressions to match attributes. Regular expressions are used in "search" mode, so for example empty string matches all attributes including special attributes]:ATTRIBUTE:_default' \
'*--output-attributes=[Deprecated\: Use \`--output-attribute\` instead]:ATTRIBUTE:_default' \
'(--package-values)*--package-values-regex=[Regular expressions to match package values. Produces an additional attribute representing package values for the package containing the target. Regular expressions are used in "search" mode so, for example, empty string matches all package values]:VALUES:_default' \
'-o+[File to put the output in, rather than sending to stdout]:PATH:_default' \
'--output=[File to put the output in, rather than sending to stdout]:PATH:_default' \
'--compression=[Compress the output]:SCHEME:(none gzip zstd)' \
'-j+[Number of threads to use during execution (default is # cores)]:THREADS:_default' \
'--num-threads=[Number of threads to use during execution (default is # cores)]:THREADS:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--json[Print targets as JSON]' \
'(--json)--json-lines[Print targets as JSON-lines]' \
'--stats[Print statistics of how many entries were processed]' \
'--resolve-alias[Print the fully-qualified build target for the specified aliases]' \
'(--streaming)--show-target-hash[Print a stable hash of each target after the target name]' \
'(--show-target-hash)--show-unconfigured-target-hash[Print a stable unconfigured hash of each target after the target name]' \
'-A[Output all attributes, equivalent of --output-attribute '\'''\'']' \
'--output-all-attributes[Output all attributes, equivalent of --output-attribute '\'''\'']' \
'-B[Output basic attributes, namely those the user can supply, plus rule type and package name]' \
'--output-basic-attributes[Output basic attributes, namely those the user can supply, plus rule type and package name]' \
'--include-defaults[Enables printing of default attributes. This would be attributes in a target that aren'\''t explicitly set in the target but instead use the default set in the rule declaration]' \
'--show-output[Print the path to the output for each of the rules relative to the project root]' \
'--show-full-output[Print the absolute path to the output for each of the rules]' \
'--show-simple-output[Print only the path to the output for each of the rules relative to the project root]' \
'--show-full-simple-output[Print only the absolute path to the output for each of the rules]' \
'--show-json-output[Print the output paths relative to the project root, in JSON format]' \
'--show-full-json-output[Print the output absolute paths, in JSON format]' \
'--keep-going[On loading errors, put buck.error in the output stream and continue]' \
'--streaming[Write output as soon as it is available. The order of the output items is non-deterministic and if multiple patterns cover the same target, may have duplicates]' \
'--no-cache[Don'\''t cache the target information on the build graph]' \
'--imports[Show the imports of each package/import. Shows an additional output per package/import (not per target), including implicit dependencies (e.g. the prelude) but only direct dependencies (not the transitive closure)]' \
'(--package-values-regex)--package-values[Show the package values. Produces an additional attribute representing all the package values for the package containing the target]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::TARGET_PATTERNS -- Patterns to interpret:' \
&& ret=0
;;
(utargets)
_arguments "${_arguments_options[@]}" : \
'(--streaming)--target-hash-file-mode=[Modifies computation of target hashes. If set to \`PATHS_AND_CONTENTS\` (the default), the contents of all files referenced from the targets will be used to compute the target hash. If set to \`PATHS_ONLY\`, only files'\'' paths contribute to the hash. If set to \`NONE\` no files will be used. See also --target-hash-modified-paths]:TARGET_HASH_FILE_MODE:(paths_only paths_and_contents none)' \
'(--streaming)*--target-hash-modified-paths=[Modifies computation of target hashes. Only effective when --target-hash-file-mode is set to \`PATHS_ONLY\`. If a target or its dependencies reference a file from this set, the target'\''s hash will be different than if this option was omitted. Otherwise, the target'\''s hash will be the same as if this option was omitted]:TARGET_HASH_MODIFIED_PATHS:_default' \
'--target-hash-function=[Selects either the "fast" or the "strong" target hash function to be used for computing target hashes. While we don'\''t specify the exact algorithm, the "strong" algorithm should be a reasonable cryptographic hash (ex. blake3) while the "fast" function will likely be a non-crypto hash. Both functions are guaranteed to be deterministic and to have the same value across different platforms/architectures]:TARGET_HASH_FUNCTION:(sha1 sha256 murmur-hash3 fast strong)' \
'(--streaming)--target-hash-recursive=[When true, emit the hash or target node and all dependencies recursively. When false, hash only the target node]:TARGET_HASH_RECURSIVE:(true false)' \
'*-a+[Regular expressions to match attributes. Regular expressions are used in "search" mode, so for example empty string matches all attributes including special attributes]:ATTRIBUTE:_default' \
'*--output-attribute=[Regular expressions to match attributes. Regular expressions are used in "search" mode, so for example empty string matches all attributes including special attributes]:ATTRIBUTE:_default' \
'*--output-attributes=[Deprecated\: Use \`--output-attribute\` instead]:ATTRIBUTE:_default' \
'(--package-values)*--package-values-regex=[Regular expressions to match package values. Produces an additional attribute representing package values for the package containing the target. Regular expressions are used in "search" mode so, for example, empty string matches all package values]:VALUES:_default' \
'-o+[File to put the output in, rather than sending to stdout]:PATH:_default' \
'--output=[File to put the output in, rather than sending to stdout]:PATH:_default' \
'--compression=[Compress the output]:SCHEME:(none gzip zstd)' \
'-j+[Number of threads to use during execution (default is # cores)]:THREADS:_default' \
'--num-threads=[Number of threads to use during execution (default is # cores)]:THREADS:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--json[Print targets as JSON]' \
'(--json)--json-lines[Print targets as JSON-lines]' \
'--stats[Print statistics of how many entries were processed]' \
'--resolve-alias[Print the fully-qualified build target for the specified aliases]' \
'(--streaming)--show-target-hash[Print a stable hash of each target after the target name]' \
'(--show-target-hash)--show-unconfigured-target-hash[Print a stable unconfigured hash of each target after the target name]' \
'-A[Output all attributes, equivalent of --output-attribute '\'''\'']' \
'--output-all-attributes[Output all attributes, equivalent of --output-attribute '\'''\'']' \
'-B[Output basic attributes, namely those the user can supply, plus rule type and package name]' \
'--output-basic-attributes[Output basic attributes, namely those the user can supply, plus rule type and package name]' \
'--include-defaults[Enables printing of default attributes. This would be attributes in a target that aren'\''t explicitly set in the target but instead use the default set in the rule declaration]' \
'--show-output[Print the path to the output for each of the rules relative to the project root]' \
'--show-full-output[Print the absolute path to the output for each of the rules]' \
'--show-simple-output[Print only the path to the output for each of the rules relative to the project root]' \
'--show-full-simple-output[Print only the absolute path to the output for each of the rules]' \
'--show-json-output[Print the output paths relative to the project root, in JSON format]' \
'--show-full-json-output[Print the output absolute paths, in JSON format]' \
'--keep-going[On loading errors, put buck.error in the output stream and continue]' \
'--streaming[Write output as soon as it is available. The order of the output items is non-deterministic and if multiple patterns cover the same target, may have duplicates]' \
'--no-cache[Don'\''t cache the target information on the build graph]' \
'--imports[Show the imports of each package/import. Shows an additional output per package/import (not per target), including implicit dependencies (e.g. the prelude) but only direct dependencies (not the transitive closure)]' \
'(--package-values-regex)--package-values[Show the package values. Produces an additional attribute representing all the package values for the package containing the target]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::TARGET_PATTERNS -- Patterns to interpret:' \
&& ret=0
;;
(ctargets)
_arguments "${_arguments_options[@]}" : \
'*-a+[Regular expressions to match attributes. Regular expressions are used in "search" mode, so for example empty string matches all attributes including special attributes]:ATTRIBUTE:_default' \
'*--output-attribute=[Regular expressions to match attributes. Regular expressions are used in "search" mode, so for example empty string matches all attributes including special attributes]:ATTRIBUTE:_default' \
'*--output-attributes=[Deprecated\: Use \`--output-attribute\` instead]:ATTRIBUTE:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--json[Print targets as JSON]' \
'(--json)--json-report[Print compatible targets and valid incompatible targets as JSON]' \
'--skip-missing-targets[Skip missing targets from \`BUCK\` files when non-glob pattern is specified. This option does not skip missing packages and does not ignore errors of \`BUCK\` file evaluation]' \
'--keep-going[On errors, put buck.error in the output stream and continue]' \
'-A[Output all attributes, equivalent of --output-attribute '\'''\'']' \
'--output-all-attributes[Output all attributes, equivalent of --output-attribute '\'''\'']' \
'-B[Output basic attributes, namely those the user can supply, plus rule type and package name]' \
'--output-basic-attributes[Output basic attributes, namely those the user can supply, plus rule type and package name]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::TARGET_PATTERNS -- Patterns to interpret:' \
&& ret=0
;;
(uquery)
_arguments "${_arguments_options[@]}" : \
'*-a+[Regular expressions to match attributes. Regular expressions are used in "search" mode, so for example empty string matches all attributes including special attributes]:ATTRIBUTE:_default' \
'*--output-attribute=[Regular expressions to match attributes. Regular expressions are used in "search" mode, so for example empty string matches all attributes including special attributes]:ATTRIBUTE:_default' \
'*--output-attributes=[Deprecated\: Use \`--output-attribute\` instead]:ATTRIBUTE:_default' \
'--output-format=[Output format (default\: list).]:dot|dot_compact|json|starlark|html:(dot json dot_compact starlark html)' \
'--target-platforms=[This option is not used]:PLATFORM:_default' \
'*-m+[This option is not used]:VALUE:_default' \
'*--modifier=[This option is not used]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'-A[Output all attributes, equivalent of --output-attribute '\'''\'']' \
'--output-all-attributes[Output all attributes, equivalent of --output-attribute '\'''\'']' \
'-B[Output basic attributes, namely those the user can supply, plus rule type and package name]' \
'--output-basic-attributes[Output basic attributes, namely those the user can supply, plus rule type and package name]' \
'--json[Output in JSON format]' \
'--dot[Output in Graphviz Dot format]' \
'--dot-compact[Output in a more compact format than Graphviz Dot]' \
'--allow-partial-graph[Allows querying the best-effort partial graph instead of aborting on the first error by skipping nodes that fail to load and edges that point to them. This only applies to the open-ended parts of the graph, e.g. an \`rdeps(//foo/...\` pattern or traversal between two explicit points. An explicit target literal given must resolve, e.g. \`rdeps(//foo\:bar, //baz\:lib)\` will still fail if \`//foo\:bar\` or \`//baz\:lib\` is missing or broken]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':QUERY -- the query to evaluate:_default' \
'*::QUERY_ARGS -- list of literals for a multi-query (one containing `%s` or `%Ss`):_default' \
&& ret=0
;;
(debug)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_buck2__subcmd__debug_commands" \
"*::: :->debug" \
&& ret=0

    case $state in
    (debug)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-debug-command-$line[1]:"
        case $line[1] in
            (crash)
_arguments "${_arguments_options[@]}" : \
'--bytes=[Number of bytes to allocate to trigger OOM killing (only used with \`oom\` crash type)]:BYTES:_default' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':crash_type:(panic abort oom)' \
&& ret=0
;;
(heap-dump)
_arguments "${_arguments_options[@]}" : \
'-p+[The path to write the heap dump to]:PATH:_default' \
'--path=[The path to write the heap dump to]:PATH:_default' \
'-t+[The path to write the heap dump to]:TEST_PATH:_default' \
'--test-executor-path=[The path to write the heap dump to]:TEST_PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(allocator-stats)
_arguments "${_arguments_options[@]}" : \
'-o+[Options to pass to allocator stats. We use JEMalloc, so the docs for \`malloc_stats_print\` indicate what is available (<https\://jemalloc.net/jemalloc.3.html>). The default configuration prints minimal output, formatted as JSON]:OPTION:_default' \
'--options=[Options to pass to allocator stats. We use JEMalloc, so the docs for \`malloc_stats_print\` indicate what is available (<https\://jemalloc.net/jemalloc.3.html>). The default configuration prints minimal output, formatted as JSON]:OPTION:_default' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--purge[If jemalloc is in use, force it to return dirty and muzzy pages to the OS before reading stats. Nop otherwise]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(dice-dump)
_arguments "${_arguments_options[@]}" : \
'-p+[The path to write the heap dump to]:PATH:_default' \
'--path=[The path to write the heap dump to]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--serde[]' \
'--serde-pretty[]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(internal-version)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(chrome-trace)
_arguments "${_arguments_options[@]}" : \
'--path=[A path to an event-log file to read from. Only works for log files with a single command in them. If no event-log is passed, the most recent one will be used.]:PATH:_default' \
'*--instant=[Places a global instant event at the specified time. Floating point seconds and integer nanoseconds unixtime is accepted.]:TIMESTAMP DESCRIPTION:_default:TIMESTAMP DESCRIPTION:_default' \
'--max-tracks=[How many tracks to render events into]:MAX_TRACKS:_default' \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':trace_path:_default' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(flush-dep-files)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--retain-local[Whether to retain locally produced dep files]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(flush-pgo-profile)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(materialize)
_arguments "${_arguments_options[@]}" : \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::paths -- Paths to materialize, relative to project root:_default' \
&& ret=0
;;
(upload-re-logs)
_arguments "${_arguments_options[@]}" : \
'--session-id=[]:SESSION_ID:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(file-status)
_arguments "${_arguments_options[@]}" : \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'-s[Print all matches]' \
'--show-matches[Print all matches]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::paths -- Paths to validate:_default' \
&& ret=0
;;
(daemon-dir)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(exe)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(allocative)
_arguments "${_arguments_options[@]}" : \
'-o+[Output directory path for profile data]:PATH:_default' \
'--output=[Output directory path for profile data]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(set-log-filter)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-daemon[Whether not to apply it to the daemon]' \
'--no-forkserver[Whether not to apply it to the forkserver]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':log_filter -- The log filter to apply:_default' \
&& ret=0
;;
(log-perf)
_arguments "${_arguments_options[@]}" : \
'--interval=[Stats will be emitted every \`interval\` events]:INTERVAL:_default' \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(trace-io)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_buck2__subcmd__debug__subcmd__trace-io_commands" \
"*::: :->trace-io" \
&& ret=0

    case $state in
    (trace-io)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-debug-trace-io-command-$line[1]:"
        case $line[1] in
            (enable)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(disable)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(export-manifest)
_arguments "${_arguments_options[@]}" : \
'-o+[Output path to write manifest to]:OUT:_default' \
'--out=[Output path to write manifest to]:OUT:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__debug__subcmd__trace-io__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-debug-trace-io-help-command-$line[1]:"
        case $line[1] in
            (enable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(disable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(export-manifest)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(persist-event-logs)
_arguments "${_arguments_options[@]}" : \
'--manifold-name=[Name this log will take in Manifold]:MANIFOLD_NAME:_default' \
'--local-path=[Where to write this log to on disk]:LOCAL_PATH:_default' \
'--trace-id=[UUID of invocation that called this subcommand for logging purposes]:TRACE_ID:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-upload[If present, only write to disk and don'\''t upload]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(paranoid)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_buck2__subcmd__debug__subcmd__paranoid_commands" \
"*::: :->paranoid" \
&& ret=0

    case $state in
    (paranoid)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-debug-paranoid-command-$line[1]:"
        case $line[1] in
            (enable)
_arguments "${_arguments_options[@]}" : \
'--ttl=[Duration, in seconds, to enable paranoid mode for]:TTL:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(disable)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__debug__subcmd__paranoid__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-debug-paranoid-help-command-$line[1]:"
        case $line[1] in
            (enable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(disable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(eval)
_arguments "${_arguments_options[@]}" : \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::paths -- Module names to evaluate, e.g. `fbsource//foo/bar\:baz`:_default' \
&& ret=0
;;
(thread-dump)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(hydration)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_buck2__subcmd__debug__subcmd__hydration_commands" \
"*::: :->hydration" \
&& ret=0

    case $state in
    (hydration)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-debug-hydration-command-$line[1]:"
        case $line[1] in
            (page-out)
_arguments "${_arguments_options[@]}" : \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(page-in)
_arguments "${_arguments_options[@]}" : \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--wait[Block until any in-progress idle page-out finishes before reporting]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__debug__subcmd__hydration__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-debug-hydration-help-command-$line[1]:"
        case $line[1] in
            (page-out)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(page-in)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__debug__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-debug-help-command-$line[1]:"
        case $line[1] in
            (crash)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(heap-dump)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(allocator-stats)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(dice-dump)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(internal-version)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(chrome-trace)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(flush-dep-files)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(flush-pgo-profile)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(materialize)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(upload-re-logs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(file-status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(daemon-dir)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(exe)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(allocative)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(set-log-filter)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(log-perf)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(trace-io)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__debug__subcmd__help__subcmd__trace-io_commands" \
"*::: :->trace-io" \
&& ret=0

    case $state in
    (trace-io)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-debug-help-trace-io-command-$line[1]:"
        case $line[1] in
            (enable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(disable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(export-manifest)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(persist-event-logs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(paranoid)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__debug__subcmd__help__subcmd__paranoid_commands" \
"*::: :->paranoid" \
&& ret=0

    case $state in
    (paranoid)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-debug-help-paranoid-command-$line[1]:"
        case $line[1] in
            (enable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(disable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(eval)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(thread-dump)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(hydration)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__debug__subcmd__help__subcmd__hydration_commands" \
"*::: :->hydration" \
&& ret=0

    case $state in
    (hydration)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-debug-help-hydration-command-$line[1]:"
        case $line[1] in
            (page-out)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(page-in)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(complete)
_arguments "${_arguments_options[@]}" : \
'--target=[Target to complete]:PARTIAL_TARGET:_default' \
'--flagfile=[Flagfile (mode file / \`@file\` argument) to complete]:PARTIAL_FLAGFILE:_default' \
'--timeout=[Timeout for completion in milliseconds]:TIMEOUT_MS:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(completion)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--options-only[Only emit completions for option flags]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':shell -- shell for which to generate completion script:(bash fish zsh powershell)' \
&& ret=0
;;
(docs)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_buck2__subcmd__docs_commands" \
"*::: :->docs" \
&& ret=0

    case $state in
    (docs)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-docs-command-$line[1]:"
        case $line[1] in
            (agent)
_arguments "${_arguments_options[@]}" : \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(starlark)
_arguments "${_arguments_options[@]}" : \
'--output-dir=[Directory to write markdown files to. Required if format is markdown_files.]:OUTPUT_DIR:_default' \
'--format=[how to format the returned documentation]:FORMAT:(json markdown_files)' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::SYMBOL_PATTERNS -- Patterns to interpret. //foo\:bar.bzl is '\''every symbol in //foo\:bar.bzl'\'', //foo\:bar.bzl\:baz only returns the documentation for the symbol '\''baz'\'' in //foo\:bar.bzl:_default' \
&& ret=0
;;
(starlark-builtins)
_arguments "${_arguments_options[@]}" : \
'--output-dir=[The directory to output files to]:OUTPUT_DIR:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(uquery)
_arguments "${_arguments_options[@]}" : \
'--format=[How to format the documentation]:FORMAT:(markdown rendered)' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(cquery)
_arguments "${_arguments_options[@]}" : \
'--format=[How to format the documentation]:FORMAT:(markdown rendered)' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(aquery)
_arguments "${_arguments_options[@]}" : \
'--format=[How to format the documentation]:FORMAT:(markdown rendered)' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(markdown-help-doc)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':SUB_COMMAND -- The buck2 sub command we want to generate the markdown doc:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__docs__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-docs-help-command-$line[1]:"
        case $line[1] in
            (agent)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(starlark)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(starlark-builtins)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(uquery)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(cquery)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(aquery)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(markdown-help-doc)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(profile)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_buck2__subcmd__profile_commands" \
"*::: :->profile" \
&& ret=0

    case $state in
    (profile)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-profile-command-$line[1]:"
        case $line[1] in
            (analysis)
_arguments "${_arguments_options[@]}" : \
'-o+[Output file path for profile data]:PATH:_default' \
'--output=[Output file path for profile data]:PATH:_default' \
'--mode=[Profile mode]:MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'*-u+[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'*--target-universe=[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'-r[In analysis profiling, capture the profile of the target and its dependencies, and output the merged profile]' \
'--recursive[In analysis profiling, capture the profile of the target and its dependencies, and output the merged profile]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::target_patterns:_default' \
&& ret=0
;;
(loading)
_arguments "${_arguments_options[@]}" : \
'-o+[Output file path for profile data]:PATH:_default' \
'--output=[Output file path for profile data]:PATH:_default' \
'--mode=[Profile mode]:MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'*-u+[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'*--target-universe=[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'-r[In analysis profiling, capture the profile of the target and its dependencies, and output the merged profile]' \
'--recursive[In analysis profiling, capture the profile of the target and its dependencies, and output the merged profile]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::target_patterns:_default' \
&& ret=0
;;
(bxl)
_arguments "${_arguments_options[@]}" : \
'-M+[Materialize (or skip) the final artifacts, bypassing buckconfig.]:MATERIALIZATIONS:(all none)' \
'--materializations=[Materialize (or skip) the final artifacts, bypassing buckconfig.]:MATERIALIZATIONS:(all none)' \
'--upload-final-artifacts=[Upload (or skip) the final artifacts.]:UPLOAD_FINAL_ARTIFACTS:(always never)' \
'--user-event-log=[Write user events to this log file. Both user and internal events are written to main event log. If this flag is specified, user events are additionally written to user event log. Log format is JSONL, uncompressed if no known extensions are detected, or you can explicitly specify the compression via the file extension (ex\: \`.json-lines.gz\` would be gzip compressed, \`.json-lines.zst\` would be zstd compressed). Resulting log is compatible with \`buck2 log show-user\`]:PATH:_default' \
'--build-report=[Print a build report]:PATH:_default' \
'*--enable-optional-validations=[Comma separated list of validation names to run that are marked optional]:VALIDATION_NAMES:_default' \
'*--build-report-options=[Comma separated list of build report options]:BUILD_REPORT_OPTIONS:_default' \
'--streaming-build-report=[Stream intermediary build reports to a file in json lines format]:PATH:_default' \
'-j+[Number of threads to use during execution (default is # cores)]:THREADS:_default' \
'--num-threads=[Number of threads to use during execution (default is # cores)]:THREADS:_default' \
'-o+[Output file path for profile data]:PATH:_default' \
'--output=[Output file path for profile data]:PATH:_default' \
'--mode=[Profile mode]:MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'*-u+[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'*--target-universe=[Comma separated list of targets to construct a configured target universe.]:TARGET_UNIVERSE:_default' \
'--target-platforms=[Configuration target (one) to use to configure targets]:PLATFORM:_default' \
'*-m+[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*--modifier=[A configuration modifier to configure all targets on the command line. This may be a constraint value target.]:VALUE:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--local-only[Enable only local execution. Will reject actions that cannot execute locally]' \
'--remote-only[Enable only remote execution. Will reject actions that cannot execute remotely]' \
'--prefer-local[Enable hybrid execution. Will prefer executing actions that can execute locally on the local host]' \
'--prefer-remote[Enable hybrid execution. Will prefer executing actions that can execute remotely on RE and will avoid racing local and remote execution]' \
'--unstable-no-execution[Experimental\: Disable all execution]' \
'--no-remote-cache[Do not perform remote cache queries or cache writes. If remote execution is enabled, the RE service might still deduplicate actions, so for e.g. benchmarking, using a random isolation dir is preferred]' \
'--write-to-cache-anyway[Could be used to enable the action cache writes on the RE worker when no_remote_cache is specified]' \
'--eager-dep-files[Process dep files when they are generated (i.e. after running a command that produces dep files), rather than when they are used (i.e. before re-running a command that previously produced dep files). Use this when debugging commands that produce dep files. Note that commands that previously produced dep files will not re-run\: only dep files produced during this command will be eagerly loaded]' \
'--upload-all-actions[Uploads every action to the RE service, regardless of whether the action needs to execute on RE]' \
'--fail-fast[If Buck hits an error, do as little work as possible before exiting]' \
'--keep-going[If Buck hits an error, continue doing as much work as possible before exiting]' \
'--skip-missing-targets[If target is missing, then skip building instead of throwing error]' \
'--skip-incompatible-targets[If target is incompatible with the specified configuration, skip building instead of throwing error. This does not apply to targets specified with glob patterns \`/...\` or \`\:\` which are skipped unconditionally]' \
'--materialize-failed-inputs[Materializes inputs for failed actions which ran on RE]' \
'--materialize-failed-outputs[Materializes outputs (if present) for failed actions which ran on RE]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':BXL label -- The bxl function to execute as defined by the label of form `<cell>//path/file.bxl\:<function>`:_default' \
'*::BXL INPUT ARGS -- Arguments passed to the bxl script:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__profile__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-profile-help-command-$line[1]:"
        case $line[1] in
            (analysis)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(loading)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(bxl)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(rage)
_arguments "${_arguments_options[@]}" : \
'--timeout=[Stop collecting information after \`<timeout>\` seconds]:TIMEOUT:_default' \
'--invocation-offset=[Use value 0 to select last invocation, 1 to select second to last and so on]:INVOCATION_OFFSET:_default' \
'--invocation-id=[Select invocation directly using the invocation'\''s UUID]:INVOCATION_ID:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-invocation[Collect rage report about buck2 in general, not about specific invocation]' \
'--no-paste[We may want to omit paste if this is not a user or is called in a machine with no pastry command]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(clean)
_arguments "${_arguments_options[@]}" : \
'--target-platforms=[This option is not used]:PLATFORM:_default' \
'*-m+[This option is not used]:VALUE:_default' \
'*--modifier=[This option is not used]:VALUE:_default' \
'--stale=[Delete artifacts from buck-out using the configured clean-stale policy or the specified duration, without killing the daemon]::DURATION:_default' \
'(--stale)--keep-since-time=[]:KEEP_SINCE_TIME:_default' \
'--adaptive-low-disk-threshold=[Enable adaptive low-disk promotion\: after the regular stale scan, promote retained, non-active artifacts (oldest-access first) to stale until projected free disk % rises above this threshold (0.0 - 100.0)]:PERCENT:_default' \
'--adaptive-min-ttl=[Minimum TTL floor for adaptive low-disk promotion\: retained artifacts accessed within this duration of now are never promoted, even under disk pressure. Ignored unless \`--adaptive-low-disk-threshold\` is set]:DURATION:_default' \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--dry-run[Performs a dry-run and prints the paths that would be removed.]' \
'--background[Run the clean operation in the background]' \
'--tracked-only[Only considers tracked artifacts for cleanup]' \
'--adaptive-unmaterialize-active[Allow adaptive cleaning to unmaterialize active remote-backed intermediate artifacts as a final escalation step]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-interactive-console[Disable console interactions]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(log)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_buck2__subcmd__log_commands" \
"*::: :->log" \
&& ret=0

    case $state in
    (log)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-log-command-$line[1]:"
        case $line[1] in
            (what-ran)
_arguments "${_arguments_options[@]}" : \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--format=[Which output format to use for this command]:FORMAT:((readable\:"Human-readable output (default)"
tabulated\:"Tab-delimited output. Deprecated in favor of \`readable\`"
json\:"JSON format, one object per line"
csv\:"Comma-separated values (CSV) format"))' \
'--filter-category=[Regular expression to filter commands by given action category (i.e. type of actions that are similar but operate on different inputs, such as invocations of a C++ compiler (whose category would be \`cxx_compile\`)). Matches by full string]:FILTER_CATEGORY:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--emit-cache-queries[]' \
'--skip-cache-hits[]' \
'--skip-remote-executions[]' \
'--skip-local-executions[]' \
'(--incomplete)--failed[Show only commands that failed]' \
'--incomplete[Show only commands that were not completed. That is command were running if buck2 process was killed, or command currently running if buck2 is running build now]' \
'(--incomplete)--show-std-err[Show also std_err from commands that are run. If the command fails before completing, we display "<command did not finish executing>". If it finishes but there is no error, we display "<stderr is empty>". Otherwise, std_err is shown. For JSON, we show raw values and null for non-completion]' \
'(--incomplete)--omit-empty-std-err[Omit commands if their std_err is empty]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(what-failed)
_arguments "${_arguments_options[@]}" : \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--format=[Which output format to use for this command]:FORMAT:((readable\:"Human-readable output (default)"
tabulated\:"Tab-delimited output. Deprecated in favor of \`readable\`"
json\:"JSON format, one object per line"
csv\:"Comma-separated values (CSV) format"))' \
'--filter-category=[Regular expression to filter commands by given action category (i.e. type of actions that are similar but operate on different inputs, such as invocations of a C++ compiler (whose category would be \`cxx_compile\`)). Matches by full string]:FILTER_CATEGORY:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--emit-cache-queries[]' \
'--skip-cache-hits[]' \
'--skip-remote-executions[]' \
'--skip-local-executions[]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(path)
_arguments "${_arguments_options[@]}" : \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--all[List all the logs]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(cmd)
_arguments "${_arguments_options[@]}" : \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--expand[Show @-expanded command line arguments instead of the original command line]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(what-up)
_arguments "${_arguments_options[@]}" : \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--after=[Print the actions that where open after certain amount of milliseconds]:NUMBER:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(what-materialized)
_arguments "${_arguments_options[@]}" : \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--format=[Which output format to use for this command]:FORMAT:((readable\:"Human-readable output (default)"
tabulated\:"Tab-delimited output. Deprecated in favor of \`readable\`"
json\:"JSON format, one object per line"
csv\:"Comma-separated values (CSV) format"))' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'(--aggregate-by-ext)-s[Sort the output by total bytes in ascending order]' \
'(--aggregate-by-ext)--sort-by-size[Sort the output by total bytes in ascending order]' \
'(-s --sort-by-size)--aggregate-by-ext[Aggregates the output by file extension]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(what-uploaded)
_arguments "${_arguments_options[@]}" : \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--format=[Which output format to use for this command]:FORMAT:((readable\:"Human-readable output (default)"
tabulated\:"Tab-delimited output. Deprecated in favor of \`readable\`"
json\:"JSON format, one object per line"
csv\:"Comma-separated values (CSV) format"))' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--aggregate-by-ext[Aggregates the output by file extension]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(critical-path)
_arguments "${_arguments_options[@]}" : \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--format=[Which output format to use for this command]:FORMAT:((readable\:"Human-readable output (default)"
tabulated\:"Tab-delimited output. Deprecated in favor of \`readable\`"
json\:"JSON format, one object per line"
csv\:"Comma-separated values (CSV) format"))' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(slowest-path)
_arguments "${_arguments_options[@]}" : \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--format=[Which output format to use for this command]:FORMAT:((readable\:"Human-readable output (default)"
tabulated\:"Tab-delimited output. Deprecated in favor of \`readable\`"
json\:"JSON format, one object per line"
csv\:"Comma-separated values (CSV) format"))' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(replay)
_arguments "${_arguments_options[@]}" : \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--speed=[Control the playback speed using a float (i.e. 0.5, 2, etc)]:NUMBER:_default' \
'(--seek-absolute)--seek=[Skip to the given number of seconds after the start of the command before starting the replay]:SEEK:_default' \
'(--seek)--seek-absolute=[Skip to the given unixtime number of seconds (floating point) or nanoseconds (integral) before starting the replay]:SEEK_ABSOLUTE:_default' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--preload[Preload the event log. This is typically only useful for benchmarking]' \
'--start-paused[Start the replay in a paused state, press '\''y'\'' to resume]' \
'--no-interactive-console[Disable console interactions]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(snoop)
_arguments "${_arguments_options[@]}" : \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--idle-timeout=[How many seconds to keep waiting for the current event log to grow again before treating its command as gone (e.g. the log was deleted, or the command exited without finishing its log). When the daemon reports the command is no longer running, the wait is cut short]:SECONDS:_default' \
'--console=[Which console to use for this command]:super|simple|...:(auto none simple simplenotty simpletty super)' \
'*--ui=[Configure additional superconsole ui components]:UI:((dice\:""
debugevents\:""
io\:"I/O panel"
re\:"RE panel"))' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--no-interactive-console[Disable console interactions]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(show-user)
_arguments "${_arguments_options[@]}" : \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(summary)
_arguments "${_arguments_options[@]}" : \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(diff)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_buck2__subcmd__log__subcmd__diff_commands" \
"*::: :->diff" \
&& ret=0

    case $state in
    (diff)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-log-diff-command-$line[1]:"
        case $line[1] in
            (action-divergence)
_arguments "${_arguments_options[@]}" : \
'--path1=[A path to an event-log file of the first command]:PATH1:_default' \
'--trace-id1=[Trace id of the first command]:TRACE_ID1:_default' \
'--recent1=[Open the event-log file from a recent command for the first command]:NUMBER:_default' \
'--path2=[A path to an event-log file of the second command]:PATH2:_default' \
'--trace-id2=[Trace id of the second command]:TRACE_ID2:_default' \
'--recent2=[Open the event-log file from a recent command for the second command]:NUMBER:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(external-configs)
_arguments "${_arguments_options[@]}" : \
'--path1=[A path to an event-log file of the first command]:PATH1:_default' \
'--trace-id1=[Trace id of the first command]:TRACE_ID1:_default' \
'--recent1=[Open the event-log file from a recent command for the first command]:NUMBER:_default' \
'--path2=[A path to an event-log file of the second command]:PATH2:_default' \
'--trace-id2=[Trace id of the second command]:TRACE_ID2:_default' \
'--recent2=[Open the event-log file from a recent command for the second command]:NUMBER:_default' \
'--format=[Which output format to use for this command]:FORMAT:((readable\:"Human-readable output (default)"
json\:"JSON format, one object per line"))' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__log__subcmd__diff__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-log-diff-help-command-$line[1]:"
        case $line[1] in
            (action-divergence)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(external-configs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(external-configs)
_arguments "${_arguments_options[@]}" : \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--format=[Which output format to use for this command]:FORMAT:((readable\:"Human-readable output (default)"
tabulated\:"Tab-delimited output. Deprecated in favor of \`readable\`"
json\:"JSON format, one object per line"
csv\:"Comma-separated values (CSV) format"))' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(chrome-trace)
_arguments "${_arguments_options[@]}" : \
'--path=[A path to an event-log file to read from. Only works for log files with a single command in them. If no event-log is passed, the most recent one will be used.]:PATH:_default' \
'*--instant=[Places a global instant event at the specified time. Floating point seconds and integer nanoseconds unixtime is accepted.]:TIMESTAMP DESCRIPTION:_default:TIMESTAMP DESCRIPTION:_default' \
'--max-tracks=[How many tracks to render events into]:MAX_TRACKS:_default' \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':trace_path:_default' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(shed)
_arguments "${_arguments_options[@]}" : \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_buck2__subcmd__log__subcmd__shed_commands" \
"*::: :->shed" \
&& ret=0

    case $state in
    (shed)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-log-shed-command-$line[1]:"
        case $line[1] in
            (select-events)
_arguments "${_arguments_options[@]}" : \
'--recent=[Open the event-log file from a recent command]:NUMBER:_default' \
'--trace-id=[Show log by trace id]:ID:_default' \
'-o+[Output path. Must use the same extension/encoding as the input log]:PATH:_default' \
'--output=[Output path. Must use the same extension/encoding as the input log]:PATH:_default' \
'*-I+[Keep only events whose name matches at least one of these regexes. Repeatable]:REGEX:_default' \
'*--include=[Keep only events whose name matches at least one of these regexes. Repeatable]:REGEX:_default' \
'*-X+[Drop events whose name matches any of these regexes. Repeatable. Applied after \`--include\`]:REGEX:_default' \
'*--exclude=[Drop events whose name matches any of these regexes. Repeatable. Applied after \`--include\`]:REGEX:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--allow-remote[This option does nothing]' \
'--no-remote[Do not allow downloading the log from manifold if it'\''s not found locally]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::path -- A path to an event-log file to read from:_default' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__log__subcmd__shed__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-log-shed-help-command-$line[1]:"
        case $line[1] in
            (select-events)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__log__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-log-help-command-$line[1]:"
        case $line[1] in
            (what-ran)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(what-failed)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(cmd)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(what-up)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(what-materialized)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(what-uploaded)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(critical-path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(slowest-path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(replay)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(snoop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show-user)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(summary)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(diff)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__log__subcmd__help__subcmd__diff_commands" \
"*::: :->diff" \
&& ret=0

    case $state in
    (diff)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-log-help-diff-command-$line[1]:"
        case $line[1] in
            (action-divergence)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(external-configs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(external-configs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(chrome-trace)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(shed)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__log__subcmd__help__subcmd__shed_commands" \
"*::: :->shed" \
&& ret=0

    case $state in
    (shed)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-log-help-shed-command-$line[1]:"
        case $line[1] in
            (select-events)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(lsp)
_arguments "${_arguments_options[@]}" : \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(subscribe)
_arguments "${_arguments_options[@]}" : \
'*-c+[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config=[List of config options]:SECTION.OPTION=VALUE:_default' \
'*--config-file=[List of config file paths]:PATH:_default' \
'--fake-host=[]:HOST:(default linux macos windows)' \
'--fake-arch=[]:ARCH:(default aarch64 x8664)' \
'--fake-xcode-version=[Value must be formatted as\: version-build (e.g., 14.3.0-14C18 or 14.1-14B47b)]:VERSION-BUILD:_default' \
'--preemptible=[Used to configure when this command could be preempted by another command for the same isolation dir]:PREEMPTIBLE:((never\:"(default) When another command starts that cannot run in parallel with this one, block that command"
always\:"When another command starts, interrupt this command, *even if they could run in parallel*. There is no good reason to use this other than that it provides slightly nicer superconsole output"
ondifferentstate\:"When another command starts that cannot run in parallel with this one, interrupt this command"))' \
'--exit-when=[Whether to proceed with or fail this invocation based on the daemon state]:EXIT_WHEN:((never\:"(default) Execute this command normally"
differentstate\:"Fail this command if another command is already running with a different state"
notidle\:"Fail this command if another command is already running (regardless of daemon state)"))' \
'*--profile-patterns=[Enables profiling for all evaluations whose evaluation identifier matches one of the provided patterns]:PROFILE_PATTERNS:_default' \
'--profile-patterns-output=[]:PATH:_default' \
'--profile-patterns-mode=[Profile mode]:PROFILE_PATTERNS_MODE:(time-flame heap-allocated heap-retained heap-flame-allocated heap-flame-retained heap-summary-allocated heap-summary-retained statement bytecode bytecode-pairs typecheck coverage none)' \
'--event-log=[Write events to this log file]:PATH:_default' \
'--write-build-id=[Write command invocation id into this file]:PATH:_default' \
'--unstable-write-invocation-record=[Write the invocation record (as JSON) to this path. No guarantees whatsoever are made regarding the stability of the format]:PATH:_default' \
'--command-report-path=[Write the command report to this path. A command report is always written to \`buck-out/v2/<uuid>/command_report\` even without this flag]:PATH:_default' \
'--isolation-dir=[The name of the directory that Buck2 creates within buck-out for writing outputs and daemon information. If one is not provided, Buck2 creates a directory with the default name]:ISOLATION_DIR:_default' \
'-v+[How verbose buck should be while logging]:VERBOSITY:_default' \
'--verbose=[How verbose buck should be while logging]:VERBOSITY:_default' \
'--oncall=[The oncall executing this command]:ONCALL:_default' \
'*--client-metadata=[Metadata key-value pairs to inject into Buck2'\''s logging. Client metadata must be of the form \`key=value\`, where \`key\` is a snake_case identifier, and will be sent to backend datasets]:CLIENT_METADATA:_default' \
'*--setting=[Override a Buck setting using \`section.key=value\`]:SECTION.KEY=VALUE:_default' \
'*--agent-context=[Agent context key=value pairs for telemetry. Used by AI agents to pass structured metadata. Schema is defined via buckconfig. Entries can be comma-separated or passed as separate flags. Examples\: --agent-context intent=fix,attempt=2,prior_error=missing_target --agent-context intent=build --agent-context attempt=1]:AGENT_CONTEXT:_default' \
'--active-commands[Whether to request command snapshots]' \
'--unstable-json[Whether to get output as JSON. The JSON format is deemed unstable so this should only be used for debugging]' \
'--reuse-current-config[Re-uses any \`--config\` values (inline or via modefiles) if there'\''s a previous command, otherwise the flag is ignored]' \
'--disable-starlark-types[Disable runtime type checking in Starlark interpreter]' \
'--unstable-typecheck[Typecheck bzl and bxl files during evaluation]' \
'--stack[Record or show target call stacks]' \
'--skip-targets-with-duplicate-names[If there are targets with duplicate names in \`BUCK\` file, skip all the duplicates but the first one. This is a hack for TD. Do not use this option]' \
'--no-event-log[Do not write any event logs. Overrides --event-log. Used from \`replay\` to avoid recursive logging]' \
'--no-buckd[Do not launch a daemon process, run buck server in client process]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-help-command-$line[1]:"
        case $line[1] in
            (daemon)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(forkserver)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(internal-test-runner)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(audit)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__help__subcmd__audit_commands" \
"*::: :->audit" \
&& ret=0

    case $state in
    (audit)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-help-audit-command-$line[1]:"
        case $line[1] in
            (cell)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(file-package)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(classpath)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(config)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(configurations)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(includes)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(prelude)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(providers)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(subtargets)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(analysis-queries)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(execution-platform-resolution)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(visibility)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(starlark)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__help__subcmd__audit__subcmd__starlark_commands" \
"*::: :->starlark" \
&& ret=0

    case $state in
    (starlark)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-help-audit-starlark-command-$line[1]:"
        case $line[1] in
            (module)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(package-deps)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(dep-files)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(deferred-materializer)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer_commands" \
"*::: :->deferred-materializer" \
&& ret=0

    case $state in
    (deferred-materializer)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-help-audit-deferred-materializer-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list-subscriptions)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fsck)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(refresh)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(get-refresh-log)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(test-iter)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(flush-access-times)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(output)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(parse)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(package-values)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(perf)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__help__subcmd__audit__subcmd__perf_commands" \
"*::: :->perf" \
&& ret=0

    case $state in
    (perf)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-help-audit-perf-command-$line[1]:"
        case $line[1] in
            (configured-graph-size)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(aquery)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(build)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(bxl)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help-env)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(test)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(cquery)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(explain)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(expand-external-cell)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(kill)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(killall)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(root)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(query)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(run)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(server)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(starlark)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__help__subcmd__starlark_commands" \
"*::: :->starlark" \
&& ret=0

    case $state in
    (starlark)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-help-starlark-command-$line[1]:"
        case $line[1] in
            (lint)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(typecheck)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(debug-attach)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(targets)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(utargets)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(ctargets)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(uquery)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(debug)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__help__subcmd__debug_commands" \
"*::: :->debug" \
&& ret=0

    case $state in
    (debug)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-help-debug-command-$line[1]:"
        case $line[1] in
            (crash)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(heap-dump)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(allocator-stats)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(dice-dump)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(internal-version)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(chrome-trace)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(flush-dep-files)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(flush-pgo-profile)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(materialize)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(upload-re-logs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(file-status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(daemon-dir)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(exe)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(allocative)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(set-log-filter)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(log-perf)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(trace-io)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__help__subcmd__debug__subcmd__trace-io_commands" \
"*::: :->trace-io" \
&& ret=0

    case $state in
    (trace-io)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-help-debug-trace-io-command-$line[1]:"
        case $line[1] in
            (enable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(disable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(export-manifest)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(persist-event-logs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(paranoid)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__help__subcmd__debug__subcmd__paranoid_commands" \
"*::: :->paranoid" \
&& ret=0

    case $state in
    (paranoid)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-help-debug-paranoid-command-$line[1]:"
        case $line[1] in
            (enable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(disable)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(eval)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(thread-dump)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(hydration)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__help__subcmd__debug__subcmd__hydration_commands" \
"*::: :->hydration" \
&& ret=0

    case $state in
    (hydration)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-help-debug-hydration-command-$line[1]:"
        case $line[1] in
            (page-out)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(page-in)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(complete)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(completion)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(docs)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__help__subcmd__docs_commands" \
"*::: :->docs" \
&& ret=0

    case $state in
    (docs)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-help-docs-command-$line[1]:"
        case $line[1] in
            (agent)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(starlark)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(starlark-builtins)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(uquery)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(cquery)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(aquery)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(markdown-help-doc)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(profile)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__help__subcmd__profile_commands" \
"*::: :->profile" \
&& ret=0

    case $state in
    (profile)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-help-profile-command-$line[1]:"
        case $line[1] in
            (analysis)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(loading)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(bxl)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(rage)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(clean)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(log)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__help__subcmd__log_commands" \
"*::: :->log" \
&& ret=0

    case $state in
    (log)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-help-log-command-$line[1]:"
        case $line[1] in
            (what-ran)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(what-failed)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(cmd)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(what-up)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(what-materialized)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(what-uploaded)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(critical-path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(slowest-path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(replay)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(snoop)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(show-user)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(summary)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(diff)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__help__subcmd__log__subcmd__diff_commands" \
"*::: :->diff" \
&& ret=0

    case $state in
    (diff)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-help-log-diff-command-$line[1]:"
        case $line[1] in
            (action-divergence)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(external-configs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(external-configs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(chrome-trace)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(shed)
_arguments "${_arguments_options[@]}" : \
":: :_buck2__subcmd__help__subcmd__log__subcmd__shed_commands" \
"*::: :->shed" \
&& ret=0

    case $state in
    (shed)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:buck2-help-log-shed-command-$line[1]:"
        case $line[1] in
            (select-events)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(lsp)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(subscribe)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_buck2_commands] )) ||
_buck2_commands() {
    local commands; commands=(
'daemon:Start or run buck daemon' \
'forkserver:run the forkserver' \
'internal-test-runner:run the internal test runner' \
'audit:Perform lower level queries' \
'aquery:Perform queries on the action graph (experimental)' \
'build:Build the specified targets' \
'bxl:Run BXL scripts' \
'help-env:Print help for environment variables used by buck2' \
'test:Build and test the specified targets' \
'cquery:Perform queries on the configured target graph' \
'init:Initialize a buck2 project' \
'explain:Generates web browser view that shows actions that ran in the last build mapped to the target graph' \
'expand-external-cell:Expand the contents of an external cell into the repo' \
'install:Build and install an application' \
'kill:Kill the buck daemon' \
'killall:Kill all buck2 processes on the machine' \
'root:Find buck cell, project or package root' \
'query:Alias for \`uquery\`' \
'run:Build and run the selected target' \
'server:Start, query, and control the http server' \
'status:Buckd status' \
'starlark:Run Starlark operations' \
'targets:Alias for \`utargets\`' \
'utargets:Show details about the specified targets' \
'ctargets:Resolve target patterns to configured targets' \
'uquery:Perform queries on the unconfigured target graph' \
'debug:Hidden debug commands useful for testing buck2' \
'complete:' \
'completion:Print completion configuration for shell' \
'docs:Print documentation of specified symbols' \
'profile:Run starlark profiler' \
'rage:Record information about the previous failed buck2 command' \
'clean:Delete generated files and caches' \
'log:Commands for interacting with buck2 logs' \
'lsp:Start an LSP server for starlark files' \
'subscribe:Subscribe to updates from the Buck2 daemon' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 commands' commands "$@"
}
(( $+functions[_buck2__subcmd__aquery_commands] )) ||
_buck2__subcmd__aquery_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 aquery commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit_commands] )) ||
_buck2__subcmd__audit_commands() {
    local commands; commands=(
'cell:Query information about the \[cells\] list in .buckconfig.' \
'file-package:Map file paths to fully qualified package names.' \
'classpath:Prints out a target'\''s classpaths if it has one.     This command is deprecated and currently available for compatibility with buck1.     We will replace this command with something that can audit the entire \`TemplatePlaceholderInfo\` in the future.' \
'config:Read and display buckconfig values.' \
'configurations:prints the constraints for configuration IDs' \
'includes:list build file extensions imported at parse time.' \
'prelude:print the interpreter prelude to stdout' \
'providers:prints out the providers for a target pattern' \
'subtargets:Print all subtargets' \
'analysis-queries:buck audit analysis resolving query attrs' \
'execution-platform-resolution:prints out information about execution platform resolution' \
'visibility:Verify the visibility for transitive deps of the specified target(s) on the unconfigured target graph' \
'starlark:Debug Starlark interpreter' \
'dep-files:prints out the select files for a command' \
'deferred-materializer:Access and interact with the deferred materializer' \
'output:Query the action that produced the output artifact. Does not support BXL, test, scratch, or anon artifacts. If the configuration hash of the output path does not match the current platform configuration, the unconfigured target label will be returned.' \
'parse:Parses the buck-out path into parts that may be useful (ex\: config hash, file path to artifact).' \
'package-values:Inspect package values, visibility, within_view and visibility_cap' \
'perf:Commands for checking buck2 performance' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 audit commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__analysis-queries_commands] )) ||
_buck2__subcmd__audit__subcmd__analysis-queries_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit analysis-queries commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__cell_commands] )) ||
_buck2__subcmd__audit__subcmd__cell_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit cell commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__classpath_commands] )) ||
_buck2__subcmd__audit__subcmd__classpath_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit classpath commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__config_commands] )) ||
_buck2__subcmd__audit__subcmd__config_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit config commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__configurations_commands] )) ||
_buck2__subcmd__audit__subcmd__configurations_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit configurations commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer_commands() {
    local commands; commands=(
'list:' \
'list-subscriptions:' \
'fsck:' \
'refresh:' \
'get-refresh-log:Get the log for TTL refreshes' \
'test-iter:' \
'flush-access-times:' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 audit deferred-materializer commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__flush-access-times_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__flush-access-times_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit deferred-materializer flush-access-times commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__fsck_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__fsck_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit deferred-materializer fsck commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__get-refresh-log_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__get-refresh-log_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit deferred-materializer get-refresh-log commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help_commands() {
    local commands; commands=(
'list:' \
'list-subscriptions:' \
'fsck:' \
'refresh:' \
'get-refresh-log:Get the log for TTL refreshes' \
'test-iter:' \
'flush-access-times:' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 audit deferred-materializer help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help__subcmd__flush-access-times_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help__subcmd__flush-access-times_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit deferred-materializer help flush-access-times commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help__subcmd__fsck_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help__subcmd__fsck_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit deferred-materializer help fsck commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help__subcmd__get-refresh-log_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help__subcmd__get-refresh-log_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit deferred-materializer help get-refresh-log commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help__subcmd__help_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit deferred-materializer help help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help__subcmd__list_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit deferred-materializer help list commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help__subcmd__list-subscriptions_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help__subcmd__list-subscriptions_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit deferred-materializer help list-subscriptions commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help__subcmd__refresh_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help__subcmd__refresh_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit deferred-materializer help refresh commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help__subcmd__test-iter_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__help__subcmd__test-iter_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit deferred-materializer help test-iter commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__list_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit deferred-materializer list commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__list-subscriptions_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__list-subscriptions_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit deferred-materializer list-subscriptions commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__refresh_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__refresh_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit deferred-materializer refresh commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__test-iter_commands] )) ||
_buck2__subcmd__audit__subcmd__deferred-materializer__subcmd__test-iter_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit deferred-materializer test-iter commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__dep-files_commands] )) ||
_buck2__subcmd__audit__subcmd__dep-files_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit dep-files commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__execution-platform-resolution_commands] )) ||
_buck2__subcmd__audit__subcmd__execution-platform-resolution_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit execution-platform-resolution commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__file-package_commands] )) ||
_buck2__subcmd__audit__subcmd__file-package_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit file-package commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help_commands] )) ||
_buck2__subcmd__audit__subcmd__help_commands() {
    local commands; commands=(
'cell:Query information about the \[cells\] list in .buckconfig.' \
'file-package:Map file paths to fully qualified package names.' \
'classpath:Prints out a target'\''s classpaths if it has one.     This command is deprecated and currently available for compatibility with buck1.     We will replace this command with something that can audit the entire \`TemplatePlaceholderInfo\` in the future.' \
'config:Read and display buckconfig values.' \
'configurations:prints the constraints for configuration IDs' \
'includes:list build file extensions imported at parse time.' \
'prelude:print the interpreter prelude to stdout' \
'providers:prints out the providers for a target pattern' \
'subtargets:Print all subtargets' \
'analysis-queries:buck audit analysis resolving query attrs' \
'execution-platform-resolution:prints out information about execution platform resolution' \
'visibility:Verify the visibility for transitive deps of the specified target(s) on the unconfigured target graph' \
'starlark:Debug Starlark interpreter' \
'dep-files:prints out the select files for a command' \
'deferred-materializer:Access and interact with the deferred materializer' \
'output:Query the action that produced the output artifact. Does not support BXL, test, scratch, or anon artifacts. If the configuration hash of the output path does not match the current platform configuration, the unconfigured target label will be returned.' \
'parse:Parses the buck-out path into parts that may be useful (ex\: config hash, file path to artifact).' \
'package-values:Inspect package values, visibility, within_view and visibility_cap' \
'perf:Commands for checking buck2 performance' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 audit help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__analysis-queries_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__analysis-queries_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help analysis-queries commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__cell_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__cell_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help cell commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__classpath_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__classpath_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help classpath commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__config_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__config_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help config commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__configurations_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__configurations_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help configurations commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer_commands() {
    local commands; commands=(
'list:' \
'list-subscriptions:' \
'fsck:' \
'refresh:' \
'get-refresh-log:Get the log for TTL refreshes' \
'test-iter:' \
'flush-access-times:' \
    )
    _describe -t commands 'buck2 audit help deferred-materializer commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer__subcmd__flush-access-times_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer__subcmd__flush-access-times_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help deferred-materializer flush-access-times commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer__subcmd__fsck_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer__subcmd__fsck_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help deferred-materializer fsck commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer__subcmd__get-refresh-log_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer__subcmd__get-refresh-log_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help deferred-materializer get-refresh-log commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer__subcmd__list_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help deferred-materializer list commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer__subcmd__list-subscriptions_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer__subcmd__list-subscriptions_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help deferred-materializer list-subscriptions commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer__subcmd__refresh_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer__subcmd__refresh_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help deferred-materializer refresh commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer__subcmd__test-iter_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__deferred-materializer__subcmd__test-iter_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help deferred-materializer test-iter commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__dep-files_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__dep-files_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help dep-files commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__execution-platform-resolution_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__execution-platform-resolution_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help execution-platform-resolution commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__file-package_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__file-package_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help file-package commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__help_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__includes_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__includes_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help includes commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__output_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__output_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help output commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__package-values_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__package-values_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help package-values commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__parse_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__parse_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help parse commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__perf_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__perf_commands() {
    local commands; commands=(
'configured-graph-size:utility to measure performance of configured graph size computation' \
    )
    _describe -t commands 'buck2 audit help perf commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__perf__subcmd__configured-graph-size_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__perf__subcmd__configured-graph-size_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help perf configured-graph-size commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__prelude_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__prelude_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help prelude commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__providers_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__providers_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help providers commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__starlark_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__starlark_commands() {
    local commands; commands=(
'module:Inspect Starlark module by fully qualified import string like foo//bar\:baz.bzl' \
'package-deps:Inspect Starlark package file all bzl dependencies by package name like foo//bar/baz' \
    )
    _describe -t commands 'buck2 audit help starlark commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__starlark__subcmd__module_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__starlark__subcmd__module_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help starlark module commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__starlark__subcmd__package-deps_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__starlark__subcmd__package-deps_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help starlark package-deps commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__subtargets_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__subtargets_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help subtargets commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__help__subcmd__visibility_commands] )) ||
_buck2__subcmd__audit__subcmd__help__subcmd__visibility_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit help visibility commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__includes_commands] )) ||
_buck2__subcmd__audit__subcmd__includes_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit includes commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__output_commands] )) ||
_buck2__subcmd__audit__subcmd__output_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit output commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__package-values_commands] )) ||
_buck2__subcmd__audit__subcmd__package-values_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit package-values commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__parse_commands] )) ||
_buck2__subcmd__audit__subcmd__parse_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit parse commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__perf_commands] )) ||
_buck2__subcmd__audit__subcmd__perf_commands() {
    local commands; commands=(
'configured-graph-size:utility to measure performance of configured graph size computation' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 audit perf commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__perf__subcmd__configured-graph-size_commands] )) ||
_buck2__subcmd__audit__subcmd__perf__subcmd__configured-graph-size_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit perf configured-graph-size commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__perf__subcmd__help_commands] )) ||
_buck2__subcmd__audit__subcmd__perf__subcmd__help_commands() {
    local commands; commands=(
'configured-graph-size:utility to measure performance of configured graph size computation' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 audit perf help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__perf__subcmd__help__subcmd__configured-graph-size_commands] )) ||
_buck2__subcmd__audit__subcmd__perf__subcmd__help__subcmd__configured-graph-size_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit perf help configured-graph-size commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__perf__subcmd__help__subcmd__help_commands] )) ||
_buck2__subcmd__audit__subcmd__perf__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit perf help help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__prelude_commands] )) ||
_buck2__subcmd__audit__subcmd__prelude_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit prelude commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__providers_commands] )) ||
_buck2__subcmd__audit__subcmd__providers_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit providers commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__starlark_commands] )) ||
_buck2__subcmd__audit__subcmd__starlark_commands() {
    local commands; commands=(
'module:Inspect Starlark module by fully qualified import string like foo//bar\:baz.bzl' \
'package-deps:Inspect Starlark package file all bzl dependencies by package name like foo//bar/baz' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 audit starlark commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__starlark__subcmd__help_commands] )) ||
_buck2__subcmd__audit__subcmd__starlark__subcmd__help_commands() {
    local commands; commands=(
'module:Inspect Starlark module by fully qualified import string like foo//bar\:baz.bzl' \
'package-deps:Inspect Starlark package file all bzl dependencies by package name like foo//bar/baz' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 audit starlark help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__starlark__subcmd__help__subcmd__help_commands] )) ||
_buck2__subcmd__audit__subcmd__starlark__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit starlark help help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__starlark__subcmd__help__subcmd__module_commands] )) ||
_buck2__subcmd__audit__subcmd__starlark__subcmd__help__subcmd__module_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit starlark help module commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__starlark__subcmd__help__subcmd__package-deps_commands] )) ||
_buck2__subcmd__audit__subcmd__starlark__subcmd__help__subcmd__package-deps_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit starlark help package-deps commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__starlark__subcmd__module_commands] )) ||
_buck2__subcmd__audit__subcmd__starlark__subcmd__module_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit starlark module commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__starlark__subcmd__package-deps_commands] )) ||
_buck2__subcmd__audit__subcmd__starlark__subcmd__package-deps_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit starlark package-deps commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__subtargets_commands] )) ||
_buck2__subcmd__audit__subcmd__subtargets_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit subtargets commands' commands "$@"
}
(( $+functions[_buck2__subcmd__audit__subcmd__visibility_commands] )) ||
_buck2__subcmd__audit__subcmd__visibility_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 audit visibility commands' commands "$@"
}
(( $+functions[_buck2__subcmd__build_commands] )) ||
_buck2__subcmd__build_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 build commands' commands "$@"
}
(( $+functions[_buck2__subcmd__bxl_commands] )) ||
_buck2__subcmd__bxl_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 bxl commands' commands "$@"
}
(( $+functions[_buck2__subcmd__clean_commands] )) ||
_buck2__subcmd__clean_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 clean commands' commands "$@"
}
(( $+functions[_buck2__subcmd__complete_commands] )) ||
_buck2__subcmd__complete_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 complete commands' commands "$@"
}
(( $+functions[_buck2__subcmd__completion_commands] )) ||
_buck2__subcmd__completion_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 completion commands' commands "$@"
}
(( $+functions[_buck2__subcmd__cquery_commands] )) ||
_buck2__subcmd__cquery_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 cquery commands' commands "$@"
}
(( $+functions[_buck2__subcmd__ctargets_commands] )) ||
_buck2__subcmd__ctargets_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 ctargets commands' commands "$@"
}
(( $+functions[_buck2__subcmd__daemon_commands] )) ||
_buck2__subcmd__daemon_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 daemon commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug_commands] )) ||
_buck2__subcmd__debug_commands() {
    local commands; commands=(
'crash:Deliberately crashes the Buck daemon, for testing purposes' \
'heap-dump:Write jemalloc heap profile to a file' \
'allocator-stats:Dumps allocator stat' \
'dice-dump:Dump the DICE graph to a file and saves it to disk' \
'internal-version:Prints the hash of the buck2 binary' \
'chrome-trace:Renders an event-log to a Chrome trace file for inspection with a browser' \
'flush-dep-files:Flushes all dep files known to Buck2' \
'flush-pgo-profile:Flush PGO profile data from the daemon to disk' \
'materialize:Forces materialization of a path, even on the deferred materializer' \
'upload-re-logs:upload RE logs' \
'file-status:Validates that Buck2 and disk agree on the state of files' \
'daemon-dir:Prints buck2 daemon directory (\`~/.buckd/xxx\`)' \
'exe:Prints buck2 executable (this executable) path' \
'allocative:' \
'set-log-filter:Change the log filter that'\''s currently applied by the Buck2 daemon' \
'log-perf:Make sense of log perf' \
'trace-io:Interact with I/O tracing of the daemon' \
'persist-event-logs:Read binary event log from stdin and simultaneously write it to disk and optionally upload to Manifold' \
'paranoid:Configure paranoid mode' \
'eval:Evaluate \`bzl\` or \`bxl\` file' \
'thread-dump:Prints a thread dump of the currently running buck daemon to stdout' \
'hydration:Control DICE node value page-out / page-in' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 debug commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__allocative_commands] )) ||
_buck2__subcmd__debug__subcmd__allocative_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug allocative commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__allocator-stats_commands] )) ||
_buck2__subcmd__debug__subcmd__allocator-stats_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug allocator-stats commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__chrome-trace_commands] )) ||
_buck2__subcmd__debug__subcmd__chrome-trace_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug chrome-trace commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__crash_commands] )) ||
_buck2__subcmd__debug__subcmd__crash_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug crash commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__daemon-dir_commands] )) ||
_buck2__subcmd__debug__subcmd__daemon-dir_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug daemon-dir commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__dice-dump_commands] )) ||
_buck2__subcmd__debug__subcmd__dice-dump_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug dice-dump commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__eval_commands] )) ||
_buck2__subcmd__debug__subcmd__eval_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug eval commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__exe_commands] )) ||
_buck2__subcmd__debug__subcmd__exe_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug exe commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__file-status_commands] )) ||
_buck2__subcmd__debug__subcmd__file-status_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug file-status commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__flush-dep-files_commands] )) ||
_buck2__subcmd__debug__subcmd__flush-dep-files_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug flush-dep-files commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__flush-pgo-profile_commands] )) ||
_buck2__subcmd__debug__subcmd__flush-pgo-profile_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug flush-pgo-profile commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__heap-dump_commands] )) ||
_buck2__subcmd__debug__subcmd__heap-dump_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug heap-dump commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help_commands] )) ||
_buck2__subcmd__debug__subcmd__help_commands() {
    local commands; commands=(
'crash:Deliberately crashes the Buck daemon, for testing purposes' \
'heap-dump:Write jemalloc heap profile to a file' \
'allocator-stats:Dumps allocator stat' \
'dice-dump:Dump the DICE graph to a file and saves it to disk' \
'internal-version:Prints the hash of the buck2 binary' \
'chrome-trace:Renders an event-log to a Chrome trace file for inspection with a browser' \
'flush-dep-files:Flushes all dep files known to Buck2' \
'flush-pgo-profile:Flush PGO profile data from the daemon to disk' \
'materialize:Forces materialization of a path, even on the deferred materializer' \
'upload-re-logs:upload RE logs' \
'file-status:Validates that Buck2 and disk agree on the state of files' \
'daemon-dir:Prints buck2 daemon directory (\`~/.buckd/xxx\`)' \
'exe:Prints buck2 executable (this executable) path' \
'allocative:' \
'set-log-filter:Change the log filter that'\''s currently applied by the Buck2 daemon' \
'log-perf:Make sense of log perf' \
'trace-io:Interact with I/O tracing of the daemon' \
'persist-event-logs:Read binary event log from stdin and simultaneously write it to disk and optionally upload to Manifold' \
'paranoid:Configure paranoid mode' \
'eval:Evaluate \`bzl\` or \`bxl\` file' \
'thread-dump:Prints a thread dump of the currently running buck daemon to stdout' \
'hydration:Control DICE node value page-out / page-in' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 debug help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__allocative_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__allocative_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help allocative commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__allocator-stats_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__allocator-stats_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help allocator-stats commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__chrome-trace_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__chrome-trace_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help chrome-trace commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__crash_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__crash_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help crash commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__daemon-dir_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__daemon-dir_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help daemon-dir commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__dice-dump_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__dice-dump_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help dice-dump commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__eval_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__eval_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help eval commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__exe_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__exe_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help exe commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__file-status_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__file-status_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help file-status commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__flush-dep-files_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__flush-dep-files_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help flush-dep-files commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__flush-pgo-profile_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__flush-pgo-profile_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help flush-pgo-profile commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__heap-dump_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__heap-dump_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help heap-dump commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__help_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__hydration_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__hydration_commands() {
    local commands; commands=(
'page-out:Page out DICE values to storage' \
'page-in:Page in DICE values from storage' \
'status:Summarize which DICE node values are resident in memory vs paged out' \
    )
    _describe -t commands 'buck2 debug help hydration commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__hydration__subcmd__page-in_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__hydration__subcmd__page-in_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help hydration page-in commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__hydration__subcmd__page-out_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__hydration__subcmd__page-out_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help hydration page-out commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__hydration__subcmd__status_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__hydration__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help hydration status commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__internal-version_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__internal-version_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help internal-version commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__log-perf_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__log-perf_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help log-perf commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__materialize_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__materialize_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help materialize commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__paranoid_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__paranoid_commands() {
    local commands; commands=(
'enable:Enable paranoid mode for a period of time' \
'disable:Disable paranoid mode' \
    )
    _describe -t commands 'buck2 debug help paranoid commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__paranoid__subcmd__disable_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__paranoid__subcmd__disable_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help paranoid disable commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__paranoid__subcmd__enable_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__paranoid__subcmd__enable_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help paranoid enable commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__persist-event-logs_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__persist-event-logs_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help persist-event-logs commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__set-log-filter_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__set-log-filter_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help set-log-filter commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__thread-dump_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__thread-dump_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help thread-dump commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__trace-io_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__trace-io_commands() {
    local commands; commands=(
'enable:Turn on I/O tracing. Has no effect if tracing is already enabled' \
'disable:Turn off I/O tracing. Has no effect if tracing is already disabled' \
'status:Return whether I/O tracing is enabled' \
'export-manifest:Exports the I/O trace taken by the daemon in a structured manifest format' \
    )
    _describe -t commands 'buck2 debug help trace-io commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__trace-io__subcmd__disable_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__trace-io__subcmd__disable_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help trace-io disable commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__trace-io__subcmd__enable_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__trace-io__subcmd__enable_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help trace-io enable commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__trace-io__subcmd__export-manifest_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__trace-io__subcmd__export-manifest_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help trace-io export-manifest commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__trace-io__subcmd__status_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__trace-io__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help trace-io status commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__help__subcmd__upload-re-logs_commands] )) ||
_buck2__subcmd__debug__subcmd__help__subcmd__upload-re-logs_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug help upload-re-logs commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__hydration_commands] )) ||
_buck2__subcmd__debug__subcmd__hydration_commands() {
    local commands; commands=(
'page-out:Page out DICE values to storage' \
'page-in:Page in DICE values from storage' \
'status:Summarize which DICE node values are resident in memory vs paged out' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 debug hydration commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__hydration__subcmd__help_commands] )) ||
_buck2__subcmd__debug__subcmd__hydration__subcmd__help_commands() {
    local commands; commands=(
'page-out:Page out DICE values to storage' \
'page-in:Page in DICE values from storage' \
'status:Summarize which DICE node values are resident in memory vs paged out' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 debug hydration help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__hydration__subcmd__help__subcmd__help_commands] )) ||
_buck2__subcmd__debug__subcmd__hydration__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug hydration help help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__hydration__subcmd__help__subcmd__page-in_commands] )) ||
_buck2__subcmd__debug__subcmd__hydration__subcmd__help__subcmd__page-in_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug hydration help page-in commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__hydration__subcmd__help__subcmd__page-out_commands] )) ||
_buck2__subcmd__debug__subcmd__hydration__subcmd__help__subcmd__page-out_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug hydration help page-out commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__hydration__subcmd__help__subcmd__status_commands] )) ||
_buck2__subcmd__debug__subcmd__hydration__subcmd__help__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug hydration help status commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__hydration__subcmd__page-in_commands] )) ||
_buck2__subcmd__debug__subcmd__hydration__subcmd__page-in_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug hydration page-in commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__hydration__subcmd__page-out_commands] )) ||
_buck2__subcmd__debug__subcmd__hydration__subcmd__page-out_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug hydration page-out commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__hydration__subcmd__status_commands] )) ||
_buck2__subcmd__debug__subcmd__hydration__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug hydration status commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__internal-version_commands] )) ||
_buck2__subcmd__debug__subcmd__internal-version_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug internal-version commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__log-perf_commands] )) ||
_buck2__subcmd__debug__subcmd__log-perf_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug log-perf commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__materialize_commands] )) ||
_buck2__subcmd__debug__subcmd__materialize_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug materialize commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__paranoid_commands] )) ||
_buck2__subcmd__debug__subcmd__paranoid_commands() {
    local commands; commands=(
'enable:Enable paranoid mode for a period of time' \
'disable:Disable paranoid mode' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 debug paranoid commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__paranoid__subcmd__disable_commands] )) ||
_buck2__subcmd__debug__subcmd__paranoid__subcmd__disable_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug paranoid disable commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__paranoid__subcmd__enable_commands] )) ||
_buck2__subcmd__debug__subcmd__paranoid__subcmd__enable_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug paranoid enable commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__paranoid__subcmd__help_commands] )) ||
_buck2__subcmd__debug__subcmd__paranoid__subcmd__help_commands() {
    local commands; commands=(
'enable:Enable paranoid mode for a period of time' \
'disable:Disable paranoid mode' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 debug paranoid help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__paranoid__subcmd__help__subcmd__disable_commands] )) ||
_buck2__subcmd__debug__subcmd__paranoid__subcmd__help__subcmd__disable_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug paranoid help disable commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__paranoid__subcmd__help__subcmd__enable_commands] )) ||
_buck2__subcmd__debug__subcmd__paranoid__subcmd__help__subcmd__enable_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug paranoid help enable commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__paranoid__subcmd__help__subcmd__help_commands] )) ||
_buck2__subcmd__debug__subcmd__paranoid__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug paranoid help help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__persist-event-logs_commands] )) ||
_buck2__subcmd__debug__subcmd__persist-event-logs_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug persist-event-logs commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__set-log-filter_commands] )) ||
_buck2__subcmd__debug__subcmd__set-log-filter_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug set-log-filter commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__thread-dump_commands] )) ||
_buck2__subcmd__debug__subcmd__thread-dump_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug thread-dump commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__trace-io_commands] )) ||
_buck2__subcmd__debug__subcmd__trace-io_commands() {
    local commands; commands=(
'enable:Turn on I/O tracing. Has no effect if tracing is already enabled' \
'disable:Turn off I/O tracing. Has no effect if tracing is already disabled' \
'status:Return whether I/O tracing is enabled' \
'export-manifest:Exports the I/O trace taken by the daemon in a structured manifest format' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 debug trace-io commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__trace-io__subcmd__disable_commands] )) ||
_buck2__subcmd__debug__subcmd__trace-io__subcmd__disable_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug trace-io disable commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__trace-io__subcmd__enable_commands] )) ||
_buck2__subcmd__debug__subcmd__trace-io__subcmd__enable_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug trace-io enable commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__trace-io__subcmd__export-manifest_commands] )) ||
_buck2__subcmd__debug__subcmd__trace-io__subcmd__export-manifest_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug trace-io export-manifest commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__trace-io__subcmd__help_commands] )) ||
_buck2__subcmd__debug__subcmd__trace-io__subcmd__help_commands() {
    local commands; commands=(
'enable:Turn on I/O tracing. Has no effect if tracing is already enabled' \
'disable:Turn off I/O tracing. Has no effect if tracing is already disabled' \
'status:Return whether I/O tracing is enabled' \
'export-manifest:Exports the I/O trace taken by the daemon in a structured manifest format' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 debug trace-io help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__trace-io__subcmd__help__subcmd__disable_commands] )) ||
_buck2__subcmd__debug__subcmd__trace-io__subcmd__help__subcmd__disable_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug trace-io help disable commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__trace-io__subcmd__help__subcmd__enable_commands] )) ||
_buck2__subcmd__debug__subcmd__trace-io__subcmd__help__subcmd__enable_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug trace-io help enable commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__trace-io__subcmd__help__subcmd__export-manifest_commands] )) ||
_buck2__subcmd__debug__subcmd__trace-io__subcmd__help__subcmd__export-manifest_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug trace-io help export-manifest commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__trace-io__subcmd__help__subcmd__help_commands] )) ||
_buck2__subcmd__debug__subcmd__trace-io__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug trace-io help help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__trace-io__subcmd__help__subcmd__status_commands] )) ||
_buck2__subcmd__debug__subcmd__trace-io__subcmd__help__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug trace-io help status commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__trace-io__subcmd__status_commands] )) ||
_buck2__subcmd__debug__subcmd__trace-io__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug trace-io status commands' commands "$@"
}
(( $+functions[_buck2__subcmd__debug__subcmd__upload-re-logs_commands] )) ||
_buck2__subcmd__debug__subcmd__upload-re-logs_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 debug upload-re-logs commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs_commands] )) ||
_buck2__subcmd__docs_commands() {
    local commands; commands=(
'agent:Print repository-specific guidance for AI agents using Buck2' \
'starlark:Print documentation of user-defined starlark symbols' \
'starlark-builtins:Generate documentation for starlark builtins' \
'uquery:Print documentation for query/uquery' \
'cquery:Print documentation for cquery' \
'aquery:Print documentation for aquery' \
'markdown-help-doc:Print out the buck2 subcommand markdown docs' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 docs commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs__subcmd__agent_commands] )) ||
_buck2__subcmd__docs__subcmd__agent_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 docs agent commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs__subcmd__aquery_commands] )) ||
_buck2__subcmd__docs__subcmd__aquery_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 docs aquery commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs__subcmd__cquery_commands] )) ||
_buck2__subcmd__docs__subcmd__cquery_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 docs cquery commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs__subcmd__help_commands] )) ||
_buck2__subcmd__docs__subcmd__help_commands() {
    local commands; commands=(
'agent:Print repository-specific guidance for AI agents using Buck2' \
'starlark:Print documentation of user-defined starlark symbols' \
'starlark-builtins:Generate documentation for starlark builtins' \
'uquery:Print documentation for query/uquery' \
'cquery:Print documentation for cquery' \
'aquery:Print documentation for aquery' \
'markdown-help-doc:Print out the buck2 subcommand markdown docs' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 docs help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs__subcmd__help__subcmd__agent_commands] )) ||
_buck2__subcmd__docs__subcmd__help__subcmd__agent_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 docs help agent commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs__subcmd__help__subcmd__aquery_commands] )) ||
_buck2__subcmd__docs__subcmd__help__subcmd__aquery_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 docs help aquery commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs__subcmd__help__subcmd__cquery_commands] )) ||
_buck2__subcmd__docs__subcmd__help__subcmd__cquery_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 docs help cquery commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs__subcmd__help__subcmd__help_commands] )) ||
_buck2__subcmd__docs__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 docs help help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs__subcmd__help__subcmd__markdown-help-doc_commands] )) ||
_buck2__subcmd__docs__subcmd__help__subcmd__markdown-help-doc_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 docs help markdown-help-doc commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs__subcmd__help__subcmd__starlark_commands] )) ||
_buck2__subcmd__docs__subcmd__help__subcmd__starlark_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 docs help starlark commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs__subcmd__help__subcmd__starlark-builtins_commands] )) ||
_buck2__subcmd__docs__subcmd__help__subcmd__starlark-builtins_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 docs help starlark-builtins commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs__subcmd__help__subcmd__uquery_commands] )) ||
_buck2__subcmd__docs__subcmd__help__subcmd__uquery_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 docs help uquery commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs__subcmd__markdown-help-doc_commands] )) ||
_buck2__subcmd__docs__subcmd__markdown-help-doc_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 docs markdown-help-doc commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs__subcmd__starlark_commands] )) ||
_buck2__subcmd__docs__subcmd__starlark_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 docs starlark commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs__subcmd__starlark-builtins_commands] )) ||
_buck2__subcmd__docs__subcmd__starlark-builtins_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 docs starlark-builtins commands' commands "$@"
}
(( $+functions[_buck2__subcmd__docs__subcmd__uquery_commands] )) ||
_buck2__subcmd__docs__subcmd__uquery_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 docs uquery commands' commands "$@"
}
(( $+functions[_buck2__subcmd__expand-external-cell_commands] )) ||
_buck2__subcmd__expand-external-cell_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 expand-external-cell commands' commands "$@"
}
(( $+functions[_buck2__subcmd__explain_commands] )) ||
_buck2__subcmd__explain_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 explain commands' commands "$@"
}
(( $+functions[_buck2__subcmd__forkserver_commands] )) ||
_buck2__subcmd__forkserver_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 forkserver commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help_commands] )) ||
_buck2__subcmd__help_commands() {
    local commands; commands=(
'daemon:Start or run buck daemon' \
'forkserver:run the forkserver' \
'internal-test-runner:run the internal test runner' \
'audit:Perform lower level queries' \
'aquery:Perform queries on the action graph (experimental)' \
'build:Build the specified targets' \
'bxl:Run BXL scripts' \
'help-env:Print help for environment variables used by buck2' \
'test:Build and test the specified targets' \
'cquery:Perform queries on the configured target graph' \
'init:Initialize a buck2 project' \
'explain:Generates web browser view that shows actions that ran in the last build mapped to the target graph' \
'expand-external-cell:Expand the contents of an external cell into the repo' \
'install:Build and install an application' \
'kill:Kill the buck daemon' \
'killall:Kill all buck2 processes on the machine' \
'root:Find buck cell, project or package root' \
'query:Alias for \`uquery\`' \
'run:Build and run the selected target' \
'server:Start, query, and control the http server' \
'status:Buckd status' \
'starlark:Run Starlark operations' \
'targets:Alias for \`utargets\`' \
'utargets:Show details about the specified targets' \
'ctargets:Resolve target patterns to configured targets' \
'uquery:Perform queries on the unconfigured target graph' \
'debug:Hidden debug commands useful for testing buck2' \
'complete:' \
'completion:Print completion configuration for shell' \
'docs:Print documentation of specified symbols' \
'profile:Run starlark profiler' \
'rage:Record information about the previous failed buck2 command' \
'clean:Delete generated files and caches' \
'log:Commands for interacting with buck2 logs' \
'lsp:Start an LSP server for starlark files' \
'subscribe:Subscribe to updates from the Buck2 daemon' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__aquery_commands] )) ||
_buck2__subcmd__help__subcmd__aquery_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help aquery commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit_commands] )) ||
_buck2__subcmd__help__subcmd__audit_commands() {
    local commands; commands=(
'cell:Query information about the \[cells\] list in .buckconfig.' \
'file-package:Map file paths to fully qualified package names.' \
'classpath:Prints out a target'\''s classpaths if it has one.     This command is deprecated and currently available for compatibility with buck1.     We will replace this command with something that can audit the entire \`TemplatePlaceholderInfo\` in the future.' \
'config:Read and display buckconfig values.' \
'configurations:prints the constraints for configuration IDs' \
'includes:list build file extensions imported at parse time.' \
'prelude:print the interpreter prelude to stdout' \
'providers:prints out the providers for a target pattern' \
'subtargets:Print all subtargets' \
'analysis-queries:buck audit analysis resolving query attrs' \
'execution-platform-resolution:prints out information about execution platform resolution' \
'visibility:Verify the visibility for transitive deps of the specified target(s) on the unconfigured target graph' \
'starlark:Debug Starlark interpreter' \
'dep-files:prints out the select files for a command' \
'deferred-materializer:Access and interact with the deferred materializer' \
'output:Query the action that produced the output artifact. Does not support BXL, test, scratch, or anon artifacts. If the configuration hash of the output path does not match the current platform configuration, the unconfigured target label will be returned.' \
'parse:Parses the buck-out path into parts that may be useful (ex\: config hash, file path to artifact).' \
'package-values:Inspect package values, visibility, within_view and visibility_cap' \
'perf:Commands for checking buck2 performance' \
    )
    _describe -t commands 'buck2 help audit commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__analysis-queries_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__analysis-queries_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit analysis-queries commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__cell_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__cell_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit cell commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__classpath_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__classpath_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit classpath commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__config_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__config_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit config commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__configurations_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__configurations_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit configurations commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer_commands() {
    local commands; commands=(
'list:' \
'list-subscriptions:' \
'fsck:' \
'refresh:' \
'get-refresh-log:Get the log for TTL refreshes' \
'test-iter:' \
'flush-access-times:' \
    )
    _describe -t commands 'buck2 help audit deferred-materializer commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer__subcmd__flush-access-times_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer__subcmd__flush-access-times_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit deferred-materializer flush-access-times commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer__subcmd__fsck_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer__subcmd__fsck_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit deferred-materializer fsck commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer__subcmd__get-refresh-log_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer__subcmd__get-refresh-log_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit deferred-materializer get-refresh-log commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer__subcmd__list_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer__subcmd__list_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit deferred-materializer list commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer__subcmd__list-subscriptions_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer__subcmd__list-subscriptions_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit deferred-materializer list-subscriptions commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer__subcmd__refresh_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer__subcmd__refresh_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit deferred-materializer refresh commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer__subcmd__test-iter_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__deferred-materializer__subcmd__test-iter_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit deferred-materializer test-iter commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__dep-files_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__dep-files_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit dep-files commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__execution-platform-resolution_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__execution-platform-resolution_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit execution-platform-resolution commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__file-package_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__file-package_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit file-package commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__includes_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__includes_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit includes commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__output_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__output_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit output commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__package-values_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__package-values_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit package-values commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__parse_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__parse_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit parse commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__perf_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__perf_commands() {
    local commands; commands=(
'configured-graph-size:utility to measure performance of configured graph size computation' \
    )
    _describe -t commands 'buck2 help audit perf commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__perf__subcmd__configured-graph-size_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__perf__subcmd__configured-graph-size_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit perf configured-graph-size commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__prelude_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__prelude_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit prelude commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__providers_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__providers_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit providers commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__starlark_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__starlark_commands() {
    local commands; commands=(
'module:Inspect Starlark module by fully qualified import string like foo//bar\:baz.bzl' \
'package-deps:Inspect Starlark package file all bzl dependencies by package name like foo//bar/baz' \
    )
    _describe -t commands 'buck2 help audit starlark commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__starlark__subcmd__module_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__starlark__subcmd__module_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit starlark module commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__starlark__subcmd__package-deps_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__starlark__subcmd__package-deps_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit starlark package-deps commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__subtargets_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__subtargets_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit subtargets commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__audit__subcmd__visibility_commands] )) ||
_buck2__subcmd__help__subcmd__audit__subcmd__visibility_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help audit visibility commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__build_commands] )) ||
_buck2__subcmd__help__subcmd__build_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help build commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__bxl_commands] )) ||
_buck2__subcmd__help__subcmd__bxl_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help bxl commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__clean_commands] )) ||
_buck2__subcmd__help__subcmd__clean_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help clean commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__complete_commands] )) ||
_buck2__subcmd__help__subcmd__complete_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help complete commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__completion_commands] )) ||
_buck2__subcmd__help__subcmd__completion_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help completion commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__cquery_commands] )) ||
_buck2__subcmd__help__subcmd__cquery_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help cquery commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__ctargets_commands] )) ||
_buck2__subcmd__help__subcmd__ctargets_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help ctargets commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__daemon_commands] )) ||
_buck2__subcmd__help__subcmd__daemon_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help daemon commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug_commands] )) ||
_buck2__subcmd__help__subcmd__debug_commands() {
    local commands; commands=(
'crash:Deliberately crashes the Buck daemon, for testing purposes' \
'heap-dump:Write jemalloc heap profile to a file' \
'allocator-stats:Dumps allocator stat' \
'dice-dump:Dump the DICE graph to a file and saves it to disk' \
'internal-version:Prints the hash of the buck2 binary' \
'chrome-trace:Renders an event-log to a Chrome trace file for inspection with a browser' \
'flush-dep-files:Flushes all dep files known to Buck2' \
'flush-pgo-profile:Flush PGO profile data from the daemon to disk' \
'materialize:Forces materialization of a path, even on the deferred materializer' \
'upload-re-logs:upload RE logs' \
'file-status:Validates that Buck2 and disk agree on the state of files' \
'daemon-dir:Prints buck2 daemon directory (\`~/.buckd/xxx\`)' \
'exe:Prints buck2 executable (this executable) path' \
'allocative:' \
'set-log-filter:Change the log filter that'\''s currently applied by the Buck2 daemon' \
'log-perf:Make sense of log perf' \
'trace-io:Interact with I/O tracing of the daemon' \
'persist-event-logs:Read binary event log from stdin and simultaneously write it to disk and optionally upload to Manifold' \
'paranoid:Configure paranoid mode' \
'eval:Evaluate \`bzl\` or \`bxl\` file' \
'thread-dump:Prints a thread dump of the currently running buck daemon to stdout' \
'hydration:Control DICE node value page-out / page-in' \
    )
    _describe -t commands 'buck2 help debug commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__allocative_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__allocative_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug allocative commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__allocator-stats_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__allocator-stats_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug allocator-stats commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__chrome-trace_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__chrome-trace_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug chrome-trace commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__crash_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__crash_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug crash commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__daemon-dir_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__daemon-dir_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug daemon-dir commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__dice-dump_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__dice-dump_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug dice-dump commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__eval_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__eval_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug eval commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__exe_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__exe_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug exe commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__file-status_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__file-status_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug file-status commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__flush-dep-files_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__flush-dep-files_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug flush-dep-files commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__flush-pgo-profile_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__flush-pgo-profile_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug flush-pgo-profile commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__heap-dump_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__heap-dump_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug heap-dump commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__hydration_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__hydration_commands() {
    local commands; commands=(
'page-out:Page out DICE values to storage' \
'page-in:Page in DICE values from storage' \
'status:Summarize which DICE node values are resident in memory vs paged out' \
    )
    _describe -t commands 'buck2 help debug hydration commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__hydration__subcmd__page-in_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__hydration__subcmd__page-in_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug hydration page-in commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__hydration__subcmd__page-out_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__hydration__subcmd__page-out_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug hydration page-out commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__hydration__subcmd__status_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__hydration__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug hydration status commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__internal-version_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__internal-version_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug internal-version commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__log-perf_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__log-perf_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug log-perf commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__materialize_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__materialize_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug materialize commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__paranoid_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__paranoid_commands() {
    local commands; commands=(
'enable:Enable paranoid mode for a period of time' \
'disable:Disable paranoid mode' \
    )
    _describe -t commands 'buck2 help debug paranoid commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__paranoid__subcmd__disable_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__paranoid__subcmd__disable_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug paranoid disable commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__paranoid__subcmd__enable_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__paranoid__subcmd__enable_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug paranoid enable commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__persist-event-logs_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__persist-event-logs_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug persist-event-logs commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__set-log-filter_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__set-log-filter_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug set-log-filter commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__thread-dump_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__thread-dump_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug thread-dump commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__trace-io_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__trace-io_commands() {
    local commands; commands=(
'enable:Turn on I/O tracing. Has no effect if tracing is already enabled' \
'disable:Turn off I/O tracing. Has no effect if tracing is already disabled' \
'status:Return whether I/O tracing is enabled' \
'export-manifest:Exports the I/O trace taken by the daemon in a structured manifest format' \
    )
    _describe -t commands 'buck2 help debug trace-io commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__trace-io__subcmd__disable_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__trace-io__subcmd__disable_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug trace-io disable commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__trace-io__subcmd__enable_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__trace-io__subcmd__enable_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug trace-io enable commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__trace-io__subcmd__export-manifest_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__trace-io__subcmd__export-manifest_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug trace-io export-manifest commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__trace-io__subcmd__status_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__trace-io__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug trace-io status commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__debug__subcmd__upload-re-logs_commands] )) ||
_buck2__subcmd__help__subcmd__debug__subcmd__upload-re-logs_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help debug upload-re-logs commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__docs_commands] )) ||
_buck2__subcmd__help__subcmd__docs_commands() {
    local commands; commands=(
'agent:Print repository-specific guidance for AI agents using Buck2' \
'starlark:Print documentation of user-defined starlark symbols' \
'starlark-builtins:Generate documentation for starlark builtins' \
'uquery:Print documentation for query/uquery' \
'cquery:Print documentation for cquery' \
'aquery:Print documentation for aquery' \
'markdown-help-doc:Print out the buck2 subcommand markdown docs' \
    )
    _describe -t commands 'buck2 help docs commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__docs__subcmd__agent_commands] )) ||
_buck2__subcmd__help__subcmd__docs__subcmd__agent_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help docs agent commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__docs__subcmd__aquery_commands] )) ||
_buck2__subcmd__help__subcmd__docs__subcmd__aquery_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help docs aquery commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__docs__subcmd__cquery_commands] )) ||
_buck2__subcmd__help__subcmd__docs__subcmd__cquery_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help docs cquery commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__docs__subcmd__markdown-help-doc_commands] )) ||
_buck2__subcmd__help__subcmd__docs__subcmd__markdown-help-doc_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help docs markdown-help-doc commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__docs__subcmd__starlark_commands] )) ||
_buck2__subcmd__help__subcmd__docs__subcmd__starlark_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help docs starlark commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__docs__subcmd__starlark-builtins_commands] )) ||
_buck2__subcmd__help__subcmd__docs__subcmd__starlark-builtins_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help docs starlark-builtins commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__docs__subcmd__uquery_commands] )) ||
_buck2__subcmd__help__subcmd__docs__subcmd__uquery_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help docs uquery commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__expand-external-cell_commands] )) ||
_buck2__subcmd__help__subcmd__expand-external-cell_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help expand-external-cell commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__explain_commands] )) ||
_buck2__subcmd__help__subcmd__explain_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help explain commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__forkserver_commands] )) ||
_buck2__subcmd__help__subcmd__forkserver_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help forkserver commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__help_commands] )) ||
_buck2__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__help-env_commands] )) ||
_buck2__subcmd__help__subcmd__help-env_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help help-env commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__init_commands] )) ||
_buck2__subcmd__help__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help init commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__install_commands] )) ||
_buck2__subcmd__help__subcmd__install_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help install commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__internal-test-runner_commands] )) ||
_buck2__subcmd__help__subcmd__internal-test-runner_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help internal-test-runner commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__kill_commands] )) ||
_buck2__subcmd__help__subcmd__kill_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help kill commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__killall_commands] )) ||
_buck2__subcmd__help__subcmd__killall_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help killall commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log_commands] )) ||
_buck2__subcmd__help__subcmd__log_commands() {
    local commands; commands=(
'what-ran:Output everything that buck ran from the selected invocation. If no invocation was specified, use the last buck invocation from this isolation directory' \
'what-failed:Outputs every command that failed in the selected invocation' \
'path:Output the path to the selected log' \
'show:Outputs the log in JSON format from selected invocation' \
'cmd:Show buck command line arguments from selected invocation' \
'what-up:Show the spans that were open when the log ended' \
'what-materialized:Outputs materializations from selected invocation' \
'what-uploaded:Outputs stats about uploads to RE from the selected invocation' \
'critical-path:Show the critical path for a selected build' \
'slowest-path:Show the slowest path for a selected build' \
'replay:Replay an event log' \
'snoop:Watch the progress of in-flight commands from another terminal' \
'show-user:Converts the event log from a selected invocation into a user event log, in JSONL format' \
'summary:Outputs high level statistics about the build' \
'diff:Subcommands for diff'\''ing two buck2 commands' \
'external-configs:Display the values and origins of external configs for a selected command' \
'chrome-trace:Generates a Chrome trace from a buck2 event log' \
'shed:Place for commands that may be useful but are too niche but put into user-visible help output' \
    )
    _describe -t commands 'buck2 help log commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__chrome-trace_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__chrome-trace_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log chrome-trace commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__cmd_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__cmd_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log cmd commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__critical-path_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__critical-path_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log critical-path commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__diff_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__diff_commands() {
    local commands; commands=(
'action-divergence:Identifies the first divergent action between two builds. Divergence is identified by the same action having differing outputs. Useful for identifying non-determinism' \
'external-configs:Identifies the diff between external buckconfigs between two commands' \
    )
    _describe -t commands 'buck2 help log diff commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__diff__subcmd__action-divergence_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__diff__subcmd__action-divergence_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log diff action-divergence commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__diff__subcmd__external-configs_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__diff__subcmd__external-configs_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log diff external-configs commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__external-configs_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__external-configs_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log external-configs commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__path_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log path commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__replay_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__replay_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log replay commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__shed_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__shed_commands() {
    local commands; commands=(
'select-events:Re-encode an event log, dropping events whose name matches a filter' \
    )
    _describe -t commands 'buck2 help log shed commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__shed__subcmd__select-events_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__shed__subcmd__select-events_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log shed select-events commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__show_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log show commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__show-user_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__show-user_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log show-user commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__slowest-path_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__slowest-path_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log slowest-path commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__snoop_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__snoop_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log snoop commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__summary_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__summary_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log summary commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__what-failed_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__what-failed_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log what-failed commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__what-materialized_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__what-materialized_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log what-materialized commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__what-ran_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__what-ran_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log what-ran commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__what-up_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__what-up_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log what-up commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__log__subcmd__what-uploaded_commands] )) ||
_buck2__subcmd__help__subcmd__log__subcmd__what-uploaded_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help log what-uploaded commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__lsp_commands] )) ||
_buck2__subcmd__help__subcmd__lsp_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help lsp commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__profile_commands] )) ||
_buck2__subcmd__help__subcmd__profile_commands() {
    local commands; commands=(
'analysis:Profile analysis' \
'loading:Profile \`BUCK\` file evaluation' \
'bxl:Profile BXL script' \
    )
    _describe -t commands 'buck2 help profile commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__profile__subcmd__analysis_commands] )) ||
_buck2__subcmd__help__subcmd__profile__subcmd__analysis_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help profile analysis commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__profile__subcmd__bxl_commands] )) ||
_buck2__subcmd__help__subcmd__profile__subcmd__bxl_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help profile bxl commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__profile__subcmd__loading_commands] )) ||
_buck2__subcmd__help__subcmd__profile__subcmd__loading_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help profile loading commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__query_commands] )) ||
_buck2__subcmd__help__subcmd__query_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help query commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__rage_commands] )) ||
_buck2__subcmd__help__subcmd__rage_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help rage commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__root_commands] )) ||
_buck2__subcmd__help__subcmd__root_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help root commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__run_commands] )) ||
_buck2__subcmd__help__subcmd__run_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help run commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__server_commands] )) ||
_buck2__subcmd__help__subcmd__server_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help server commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__starlark_commands] )) ||
_buck2__subcmd__help__subcmd__starlark_commands() {
    local commands; commands=(
'lint:Run the Starlark linter.' \
'typecheck:Run the Starlark typechecker.' \
'debug-attach:Run the starlark debug adapter protocol server' \
    )
    _describe -t commands 'buck2 help starlark commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__starlark__subcmd__debug-attach_commands] )) ||
_buck2__subcmd__help__subcmd__starlark__subcmd__debug-attach_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help starlark debug-attach commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__starlark__subcmd__lint_commands] )) ||
_buck2__subcmd__help__subcmd__starlark__subcmd__lint_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help starlark lint commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__starlark__subcmd__typecheck_commands] )) ||
_buck2__subcmd__help__subcmd__starlark__subcmd__typecheck_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help starlark typecheck commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__status_commands] )) ||
_buck2__subcmd__help__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help status commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__subscribe_commands] )) ||
_buck2__subcmd__help__subcmd__subscribe_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help subscribe commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__targets_commands] )) ||
_buck2__subcmd__help__subcmd__targets_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help targets commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__test_commands] )) ||
_buck2__subcmd__help__subcmd__test_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help test commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__uquery_commands] )) ||
_buck2__subcmd__help__subcmd__uquery_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help uquery commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help__subcmd__utargets_commands] )) ||
_buck2__subcmd__help__subcmd__utargets_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help utargets commands' commands "$@"
}
(( $+functions[_buck2__subcmd__help-env_commands] )) ||
_buck2__subcmd__help-env_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 help-env commands' commands "$@"
}
(( $+functions[_buck2__subcmd__init_commands] )) ||
_buck2__subcmd__init_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 init commands' commands "$@"
}
(( $+functions[_buck2__subcmd__install_commands] )) ||
_buck2__subcmd__install_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 install commands' commands "$@"
}
(( $+functions[_buck2__subcmd__internal-test-runner_commands] )) ||
_buck2__subcmd__internal-test-runner_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 internal-test-runner commands' commands "$@"
}
(( $+functions[_buck2__subcmd__kill_commands] )) ||
_buck2__subcmd__kill_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 kill commands' commands "$@"
}
(( $+functions[_buck2__subcmd__killall_commands] )) ||
_buck2__subcmd__killall_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 killall commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log_commands] )) ||
_buck2__subcmd__log_commands() {
    local commands; commands=(
'what-ran:Output everything that buck ran from the selected invocation. If no invocation was specified, use the last buck invocation from this isolation directory' \
'what-failed:Outputs every command that failed in the selected invocation' \
'path:Output the path to the selected log' \
'show:Outputs the log in JSON format from selected invocation' \
'cmd:Show buck command line arguments from selected invocation' \
'what-up:Show the spans that were open when the log ended' \
'what-materialized:Outputs materializations from selected invocation' \
'what-uploaded:Outputs stats about uploads to RE from the selected invocation' \
'critical-path:Show the critical path for a selected build' \
'slowest-path:Show the slowest path for a selected build' \
'replay:Replay an event log' \
'snoop:Watch the progress of in-flight commands from another terminal' \
'show-user:Converts the event log from a selected invocation into a user event log, in JSONL format' \
'summary:Outputs high level statistics about the build' \
'diff:Subcommands for diff'\''ing two buck2 commands' \
'external-configs:Display the values and origins of external configs for a selected command' \
'chrome-trace:Generates a Chrome trace from a buck2 event log' \
'shed:Place for commands that may be useful but are too niche but put into user-visible help output' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 log commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__chrome-trace_commands] )) ||
_buck2__subcmd__log__subcmd__chrome-trace_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log chrome-trace commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__cmd_commands] )) ||
_buck2__subcmd__log__subcmd__cmd_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log cmd commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__critical-path_commands] )) ||
_buck2__subcmd__log__subcmd__critical-path_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log critical-path commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__diff_commands] )) ||
_buck2__subcmd__log__subcmd__diff_commands() {
    local commands; commands=(
'action-divergence:Identifies the first divergent action between two builds. Divergence is identified by the same action having differing outputs. Useful for identifying non-determinism' \
'external-configs:Identifies the diff between external buckconfigs between two commands' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 log diff commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__diff__subcmd__action-divergence_commands] )) ||
_buck2__subcmd__log__subcmd__diff__subcmd__action-divergence_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log diff action-divergence commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__diff__subcmd__external-configs_commands] )) ||
_buck2__subcmd__log__subcmd__diff__subcmd__external-configs_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log diff external-configs commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__diff__subcmd__help_commands] )) ||
_buck2__subcmd__log__subcmd__diff__subcmd__help_commands() {
    local commands; commands=(
'action-divergence:Identifies the first divergent action between two builds. Divergence is identified by the same action having differing outputs. Useful for identifying non-determinism' \
'external-configs:Identifies the diff between external buckconfigs between two commands' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 log diff help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__diff__subcmd__help__subcmd__action-divergence_commands] )) ||
_buck2__subcmd__log__subcmd__diff__subcmd__help__subcmd__action-divergence_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log diff help action-divergence commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__diff__subcmd__help__subcmd__external-configs_commands] )) ||
_buck2__subcmd__log__subcmd__diff__subcmd__help__subcmd__external-configs_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log diff help external-configs commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__diff__subcmd__help__subcmd__help_commands] )) ||
_buck2__subcmd__log__subcmd__diff__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log diff help help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__external-configs_commands] )) ||
_buck2__subcmd__log__subcmd__external-configs_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log external-configs commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help_commands] )) ||
_buck2__subcmd__log__subcmd__help_commands() {
    local commands; commands=(
'what-ran:Output everything that buck ran from the selected invocation. If no invocation was specified, use the last buck invocation from this isolation directory' \
'what-failed:Outputs every command that failed in the selected invocation' \
'path:Output the path to the selected log' \
'show:Outputs the log in JSON format from selected invocation' \
'cmd:Show buck command line arguments from selected invocation' \
'what-up:Show the spans that were open when the log ended' \
'what-materialized:Outputs materializations from selected invocation' \
'what-uploaded:Outputs stats about uploads to RE from the selected invocation' \
'critical-path:Show the critical path for a selected build' \
'slowest-path:Show the slowest path for a selected build' \
'replay:Replay an event log' \
'snoop:Watch the progress of in-flight commands from another terminal' \
'show-user:Converts the event log from a selected invocation into a user event log, in JSONL format' \
'summary:Outputs high level statistics about the build' \
'diff:Subcommands for diff'\''ing two buck2 commands' \
'external-configs:Display the values and origins of external configs for a selected command' \
'chrome-trace:Generates a Chrome trace from a buck2 event log' \
'shed:Place for commands that may be useful but are too niche but put into user-visible help output' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 log help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__chrome-trace_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__chrome-trace_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help chrome-trace commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__cmd_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__cmd_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help cmd commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__critical-path_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__critical-path_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help critical-path commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__diff_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__diff_commands() {
    local commands; commands=(
'action-divergence:Identifies the first divergent action between two builds. Divergence is identified by the same action having differing outputs. Useful for identifying non-determinism' \
'external-configs:Identifies the diff between external buckconfigs between two commands' \
    )
    _describe -t commands 'buck2 log help diff commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__diff__subcmd__action-divergence_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__diff__subcmd__action-divergence_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help diff action-divergence commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__diff__subcmd__external-configs_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__diff__subcmd__external-configs_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help diff external-configs commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__external-configs_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__external-configs_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help external-configs commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__help_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__path_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help path commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__replay_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__replay_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help replay commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__shed_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__shed_commands() {
    local commands; commands=(
'select-events:Re-encode an event log, dropping events whose name matches a filter' \
    )
    _describe -t commands 'buck2 log help shed commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__shed__subcmd__select-events_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__shed__subcmd__select-events_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help shed select-events commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__show_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help show commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__show-user_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__show-user_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help show-user commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__slowest-path_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__slowest-path_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help slowest-path commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__snoop_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__snoop_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help snoop commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__summary_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__summary_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help summary commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__what-failed_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__what-failed_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help what-failed commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__what-materialized_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__what-materialized_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help what-materialized commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__what-ran_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__what-ran_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help what-ran commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__what-up_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__what-up_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help what-up commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__help__subcmd__what-uploaded_commands] )) ||
_buck2__subcmd__log__subcmd__help__subcmd__what-uploaded_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log help what-uploaded commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__path_commands] )) ||
_buck2__subcmd__log__subcmd__path_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log path commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__replay_commands] )) ||
_buck2__subcmd__log__subcmd__replay_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log replay commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__shed_commands] )) ||
_buck2__subcmd__log__subcmd__shed_commands() {
    local commands; commands=(
'select-events:Re-encode an event log, dropping events whose name matches a filter' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 log shed commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__shed__subcmd__help_commands] )) ||
_buck2__subcmd__log__subcmd__shed__subcmd__help_commands() {
    local commands; commands=(
'select-events:Re-encode an event log, dropping events whose name matches a filter' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 log shed help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__shed__subcmd__help__subcmd__help_commands] )) ||
_buck2__subcmd__log__subcmd__shed__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log shed help help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__shed__subcmd__help__subcmd__select-events_commands] )) ||
_buck2__subcmd__log__subcmd__shed__subcmd__help__subcmd__select-events_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log shed help select-events commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__shed__subcmd__select-events_commands] )) ||
_buck2__subcmd__log__subcmd__shed__subcmd__select-events_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log shed select-events commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__show_commands] )) ||
_buck2__subcmd__log__subcmd__show_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log show commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__show-user_commands] )) ||
_buck2__subcmd__log__subcmd__show-user_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log show-user commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__slowest-path_commands] )) ||
_buck2__subcmd__log__subcmd__slowest-path_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log slowest-path commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__snoop_commands] )) ||
_buck2__subcmd__log__subcmd__snoop_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log snoop commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__summary_commands] )) ||
_buck2__subcmd__log__subcmd__summary_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log summary commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__what-failed_commands] )) ||
_buck2__subcmd__log__subcmd__what-failed_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log what-failed commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__what-materialized_commands] )) ||
_buck2__subcmd__log__subcmd__what-materialized_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log what-materialized commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__what-ran_commands] )) ||
_buck2__subcmd__log__subcmd__what-ran_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log what-ran commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__what-up_commands] )) ||
_buck2__subcmd__log__subcmd__what-up_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log what-up commands' commands "$@"
}
(( $+functions[_buck2__subcmd__log__subcmd__what-uploaded_commands] )) ||
_buck2__subcmd__log__subcmd__what-uploaded_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 log what-uploaded commands' commands "$@"
}
(( $+functions[_buck2__subcmd__lsp_commands] )) ||
_buck2__subcmd__lsp_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 lsp commands' commands "$@"
}
(( $+functions[_buck2__subcmd__profile_commands] )) ||
_buck2__subcmd__profile_commands() {
    local commands; commands=(
'analysis:Profile analysis' \
'loading:Profile \`BUCK\` file evaluation' \
'bxl:Profile BXL script' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 profile commands' commands "$@"
}
(( $+functions[_buck2__subcmd__profile__subcmd__analysis_commands] )) ||
_buck2__subcmd__profile__subcmd__analysis_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 profile analysis commands' commands "$@"
}
(( $+functions[_buck2__subcmd__profile__subcmd__bxl_commands] )) ||
_buck2__subcmd__profile__subcmd__bxl_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 profile bxl commands' commands "$@"
}
(( $+functions[_buck2__subcmd__profile__subcmd__help_commands] )) ||
_buck2__subcmd__profile__subcmd__help_commands() {
    local commands; commands=(
'analysis:Profile analysis' \
'loading:Profile \`BUCK\` file evaluation' \
'bxl:Profile BXL script' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 profile help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__profile__subcmd__help__subcmd__analysis_commands] )) ||
_buck2__subcmd__profile__subcmd__help__subcmd__analysis_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 profile help analysis commands' commands "$@"
}
(( $+functions[_buck2__subcmd__profile__subcmd__help__subcmd__bxl_commands] )) ||
_buck2__subcmd__profile__subcmd__help__subcmd__bxl_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 profile help bxl commands' commands "$@"
}
(( $+functions[_buck2__subcmd__profile__subcmd__help__subcmd__help_commands] )) ||
_buck2__subcmd__profile__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 profile help help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__profile__subcmd__help__subcmd__loading_commands] )) ||
_buck2__subcmd__profile__subcmd__help__subcmd__loading_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 profile help loading commands' commands "$@"
}
(( $+functions[_buck2__subcmd__profile__subcmd__loading_commands] )) ||
_buck2__subcmd__profile__subcmd__loading_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 profile loading commands' commands "$@"
}
(( $+functions[_buck2__subcmd__query_commands] )) ||
_buck2__subcmd__query_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 query commands' commands "$@"
}
(( $+functions[_buck2__subcmd__rage_commands] )) ||
_buck2__subcmd__rage_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 rage commands' commands "$@"
}
(( $+functions[_buck2__subcmd__root_commands] )) ||
_buck2__subcmd__root_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 root commands' commands "$@"
}
(( $+functions[_buck2__subcmd__run_commands] )) ||
_buck2__subcmd__run_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 run commands' commands "$@"
}
(( $+functions[_buck2__subcmd__server_commands] )) ||
_buck2__subcmd__server_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 server commands' commands "$@"
}
(( $+functions[_buck2__subcmd__starlark_commands] )) ||
_buck2__subcmd__starlark_commands() {
    local commands; commands=(
'lint:Run the Starlark linter.' \
'typecheck:Run the Starlark typechecker.' \
'debug-attach:Run the starlark debug adapter protocol server' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 starlark commands' commands "$@"
}
(( $+functions[_buck2__subcmd__starlark__subcmd__debug-attach_commands] )) ||
_buck2__subcmd__starlark__subcmd__debug-attach_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 starlark debug-attach commands' commands "$@"
}
(( $+functions[_buck2__subcmd__starlark__subcmd__help_commands] )) ||
_buck2__subcmd__starlark__subcmd__help_commands() {
    local commands; commands=(
'lint:Run the Starlark linter.' \
'typecheck:Run the Starlark typechecker.' \
'debug-attach:Run the starlark debug adapter protocol server' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'buck2 starlark help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__starlark__subcmd__help__subcmd__debug-attach_commands] )) ||
_buck2__subcmd__starlark__subcmd__help__subcmd__debug-attach_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 starlark help debug-attach commands' commands "$@"
}
(( $+functions[_buck2__subcmd__starlark__subcmd__help__subcmd__help_commands] )) ||
_buck2__subcmd__starlark__subcmd__help__subcmd__help_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 starlark help help commands' commands "$@"
}
(( $+functions[_buck2__subcmd__starlark__subcmd__help__subcmd__lint_commands] )) ||
_buck2__subcmd__starlark__subcmd__help__subcmd__lint_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 starlark help lint commands' commands "$@"
}
(( $+functions[_buck2__subcmd__starlark__subcmd__help__subcmd__typecheck_commands] )) ||
_buck2__subcmd__starlark__subcmd__help__subcmd__typecheck_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 starlark help typecheck commands' commands "$@"
}
(( $+functions[_buck2__subcmd__starlark__subcmd__lint_commands] )) ||
_buck2__subcmd__starlark__subcmd__lint_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 starlark lint commands' commands "$@"
}
(( $+functions[_buck2__subcmd__starlark__subcmd__typecheck_commands] )) ||
_buck2__subcmd__starlark__subcmd__typecheck_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 starlark typecheck commands' commands "$@"
}
(( $+functions[_buck2__subcmd__status_commands] )) ||
_buck2__subcmd__status_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 status commands' commands "$@"
}
(( $+functions[_buck2__subcmd__subscribe_commands] )) ||
_buck2__subcmd__subscribe_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 subscribe commands' commands "$@"
}
(( $+functions[_buck2__subcmd__targets_commands] )) ||
_buck2__subcmd__targets_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 targets commands' commands "$@"
}
(( $+functions[_buck2__subcmd__test_commands] )) ||
_buck2__subcmd__test_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 test commands' commands "$@"
}
(( $+functions[_buck2__subcmd__uquery_commands] )) ||
_buck2__subcmd__uquery_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 uquery commands' commands "$@"
}
(( $+functions[_buck2__subcmd__utargets_commands] )) ||
_buck2__subcmd__utargets_commands() {
    local commands; commands=()
    _describe -t commands 'buck2 utargets commands' commands "$@"
}

if [ "$funcstack[1]" = "_buck2" ]; then
    _buck2 "$@"
else
    compdef _buck2 buck2
fi

# clap_complete generated content ENDS

compdef -d buck2

_BUCK_COMPLETE_BIN="${_BUCK_COMPLETE_BIN:-buck2}"

__buck2_takes_target()
{
    case "$1" in
    build|ctargets|install|run|targets|test|utargets)
        return 0
        ;;
    *)
        return 1
        ;;
    esac
}

__buck2_subcommand()
{
    local subcommand=
    for w in "${words[@]:1:$CURRENT - 1}"; do
        case "$w" in
        -*|@*)
            ;;
        *)
            if [[ -z $subcommand ]]; then
                subcommand="$w"
            fi
            ;;
        esac
    done
    if [[ -n $subcommand ]]; then
        echo "$subcommand"
    fi
}

__buck2_add_target_completions()
{
    local completions=()
    while read -r; do
        completions+="$REPLY"
    done < <("${_BUCK_COMPLETE_BIN[@]}" complete --target="$1" 2>/dev/null)

    # Note: `-J targets` is needed as otherwise `-o nosort` is silently ignored
    compadd -S '' -J targets -o nosort -- "${completions[@]}"
}

__buck2_add_flagfile_completions()
{
    local completions=()
    while read -r; do
        completions+="$REPLY"
    done < <("${_BUCK_COMPLETE_BIN[@]}" complete --flagfile="$1" 2>/dev/null)

    compadd -S '' -J flagfiles -o nosort -- "${completions[@]}"
}

__buck2_completions_queued()
{
    if [[ ${compstate[nmatches]} -eq 0 ]]; then
        return 255
    else
        return 0
    fi
}

__buck2_fix()
{
    for w in "${words[@]:1:$CURRENT - 1}"; do
        if [[ "$w" = '--' ]]; then
            # We're running completions after a `--` - just report file completions and otherwise
            # exit out
            _files
            return
        fi
    done

    local cur="${words[CURRENT]}"
    local prev="${words[CURRENT-1]}"
    local pprev="${words[CURRENT-2]}"

    # Flagfile / mode-file completion: an `@file` argument or the value of
    # `--flagfile`/`--config-file`.
    if [[ $cur == @* || $prev == --flagfile || $prev == --config-file ]]; then
        __buck2_add_flagfile_completions "$cur"
        compstate[insert]="automenu-unambiguous"
        return
    fi

    # Zsh treats `:` as a separate word, so we have to do some work to
    # recover a partial target name
    if [[ $cur = : ]]; then
        if [[ "${BUFFER:0:$CURRENT}" =~ .*$prev: ]]; then
            cur="$prev:"
        fi
    elif [[ $prev = : ]]; then
        if [[ "${BUFFER:0:$CURRENT}" =~ .*$prev: ]]; then
            cur="$pprev:$cur"
        else
            cur=":$cur"
        fi
    fi

    if __buck2_takes_target "$(__buck2_subcommand)"; then
        if [[ $cur =~ ^- ]]; then
            _buck2 "$@"
        else
            _buck2 "$@"
            if ! __buck2_completions_queued; then
                __buck2_add_target_completions "$cur"
            fi
        fi
    else
        _buck2 "$@"
    fi

    compstate[insert]="automenu-unambiguous"
}

compdef __buck2_fix buck buck2
