403Webshell
Server IP : 104.21.38.3  /  Your IP : 162.158.88.103
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/bash-completion/completions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/bash-completion/completions/_mock
# bash completion for mock                                 -*- shell-script -*-

# Use of this file is deprecated.  Upstream completion is available in
# mock > 1.1.0, use that instead.

_mock()
{
    local cur prev words cword split
    _init_completion -s || return

    local plugins='tmpfs root_cache yum_cache bind_mount ccache'
    local cfgdir=/etc/mock count=0 i

    for i in "${words[@]}"; do
        ((count == cword)) && break
        if [[ $i == --configdir ]]; then
            cfgdir="${words[count + 1]}"
        elif [[ $i == --configdir=* ]]; then
            cfgdir=${i/*=/}
        fi
        ((count++))
    done

    case $prev in
        -h | --help | --copyin | --copyout | --arch | -D | --define | --with | --without | \
            --uniqueext | --rpmbuild_timeout | --sources | --cwd)
            return
            ;;
        -r | --root)
            COMPREPLY=($(compgen -W "$(command ls $cfgdir)" -- "$cur"))
            COMPREPLY=(${COMPREPLY[@]/%.cfg/})
            return
            ;;
        --configdir | --resultdir)
            _filedir -d
            return
            ;;
        --spec)
            _filedir spec
            return
            ;;
        --target)
            # Yep, compatible archs, not compatible build archs
            # (e.g. ix86 chroot builds in x86_64 mock host)
            # This would actually depend on what the target root
            # can be used to build for...
            COMPREPLY=($(compgen -W "$(command rpm --showrc |
                command sed -ne 's/^\s*compatible\s\s*archs\s*:\s*\(.*\)/\1/i p')" \
                -- "$cur"))
            return
            ;;
        --enable-plugin | --disable-plugin)
            COMPREPLY=($(compgen -W "$plugins" -- "$cur"))
            return
            ;;
    esac

    $split && return

    if [[ $cur == -* ]]; then
        COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
        [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
    else
        _filedir '@(?(no)src.r|s)pm'
    fi
} &&
    complete -F _mock mock

# ex: filetype=sh

Youez - 2016 - github.com/yon3zu
LinuXploit