complete -c typst -n "__fish_use_subcommand" -l font-path -d 'Add additional directories to search for fonts' -r -F
complete -c typst -n "__fish_use_subcommand" -l root -d 'Configure the root for absolute paths' -r -F
complete -c typst -n "__fish_use_subcommand" -s v -l verbosity -d 'Sets the level of verbosity: 0 = none, 1 = warning & error, 2 = info, 3 = debug, 4 = trace'
complete -c typst -n "__fish_use_subcommand" -s h -l help -d 'Print help'
complete -c typst -n "__fish_use_subcommand" -s V -l version -d 'Print version'
complete -c typst -n "__fish_use_subcommand" -f -a "compile" -d 'Compiles the input file into a PDF file'
complete -c typst -n "__fish_use_subcommand" -f -a "watch" -d 'Watches the input file and recompiles on changes'
complete -c typst -n "__fish_use_subcommand" -f -a "fonts" -d 'List all discovered fonts in system and custom font paths'
complete -c typst -n "__fish_use_subcommand" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
complete -c typst -n "__fish_seen_subcommand_from compile" -l open -d 'Opens the output file after compilation using the default PDF viewer' -r
complete -c typst -n "__fish_seen_subcommand_from compile" -l flamegraph -d 'Produces a flamegraph of the compilation process and saves it to the given file or to `flamegraph.svg` in the current working directory' -r -F
complete -c typst -n "__fish_seen_subcommand_from compile" -s h -l help -d 'Print help'
complete -c typst -n "__fish_seen_subcommand_from watch" -l open -d 'Opens the output file after compilation using the default PDF viewer' -r
complete -c typst -n "__fish_seen_subcommand_from watch" -l flamegraph -d 'Produces a flamegraph of the compilation process and saves it to the given file or to `flamegraph.svg` in the current working directory' -r -F
complete -c typst -n "__fish_seen_subcommand_from watch" -s h -l help -d 'Print help'
complete -c typst -n "__fish_seen_subcommand_from fonts" -l variants -d 'Also list style variants of each font family'
complete -c typst -n "__fish_seen_subcommand_from fonts" -s h -l help -d 'Print help'
complete -c typst -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from compile; and not __fish_seen_subcommand_from watch; and not __fish_seen_subcommand_from fonts; and not __fish_seen_subcommand_from help" -f -a "compile" -d 'Compiles the input file into a PDF file'
complete -c typst -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from compile; and not __fish_seen_subcommand_from watch; and not __fish_seen_subcommand_from fonts; and not __fish_seen_subcommand_from help" -f -a "watch" -d 'Watches the input file and recompiles on changes'
complete -c typst -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from compile; and not __fish_seen_subcommand_from watch; and not __fish_seen_subcommand_from fonts; and not __fish_seen_subcommand_from help" -f -a "fonts" -d 'List all discovered fonts in system and custom font paths'
complete -c typst -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from compile; and not __fish_seen_subcommand_from watch; and not __fish_seen_subcommand_from fonts; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
