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 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" -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" -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)'
