#compdef ffs autoload -U is-at-least _ffs() { 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[@]}" \ '--completions=[Generate shell completions and exit]: :(bash fish zsh)' \ '-u+[Sets the user id of the generated filesystem (defaults to current effective user id)]' \ '--uid=[Sets the user id of the generated filesystem (defaults to current effective user id)]' \ '-g+[Sets the group id of the generated filesystem (defaults to current effective group id)]' \ '--gid=[Sets the group id of the generated filesystem (defaults to current effective group id)]' \ '--mode=[Sets the default mode of files (parsed as octal; defaults to 644; if unspecified, directories will have this mode with execute bits set when read bits are set)]' \ '--dirmode=[Sets the default mode of directories (parsed as octal; defaults to 755; )]' \ '-o+[Sets the output file for saving changes (defaults to stdout)]' \ '--output=[Sets the output file for saving changes (defaults to stdout)]' \ '-s+[Specify the source format explicitly (by default, automatically inferred from filename extension)]: :(json toml yaml)' \ '--source=[Specify the source format explicitly (by default, automatically inferred from filename extension)]: :(json toml yaml)' \ '-t+[Specify the target format explicitly (by default, automatically inferred from filename extension)]: :(json toml yaml)' \ '--target=[Specify the target format explicitly (by default, automatically inferred from filename extension)]: :(json toml yaml)' \ '-m+[Sets the mountpoint; will be inferred when using a file, but must be specified when running on stdin]' \ '--mount=[Sets the mountpoint; will be inferred when using a file, but must be specified when running on stdin]' \ '-q[Quiet mode (turns off all errors and warnings, enables `--no-output`)]' \ '--quiet[Quiet mode (turns off all errors and warnings, enables `--no-output`)]' \ '-d[Give debug output on stderr]' \ '--debug[Give debug output on stderr]' \ '--exact[Don'\''t add newlines to the end of values that don'\''t already have them (or strip them when loading)]' \ '--unpadded[Don'\''t pad the numeric names of list elements with zeroes; will not sort properly]' \ '--readonly[Mounted filesystem will be readonly]' \ '--no-output[Disables output of filesystem (normally on stdout)]' \ '-i[Writes the output back over the input file]' \ '--in-place[Writes the output back over the input file]' \ '-h[Prints help information]' \ '--help[Prints help information]' \ '-V[Prints version information]' \ '--version[Prints version information]' \ '::INPUT -- Sets the input file (defaults to '-', meaning STDIN):_files' \ && ret=0 } (( $+functions[_ffs_commands] )) || _ffs_commands() { local commands; commands=( ) _describe -t commands 'ffs commands' commands "$@" } _ffs "$@"