Пример #1
0
 def execute(self, server, argv):
     install_path = deploy_bash_completion()
     sys.stdout.write(
         "Installed bash completion script in {}\n".format(install_path))
     return OK
Пример #2
0
def test_deploy_bash_completion(stderr, stdout):
    path = tempfile.mkdtemp(suffix='.acmd.bash_completion.d')
    paths = [path]
    ret = acmd.deploy_bash_completion(paths=paths)
    eq_(path, ret)
Пример #3
0
def test_no_deploy_dirs(stderr, stdout):
    path = '/THIS/IS/A/NON/EXISTING/PATH'
    ret = acmd.deploy_bash_completion(paths=[path])
    eq_(None, ret)
Пример #4
0
 def execute(self, server, argv):
     install_path = deploy_bash_completion()
     sys.stdout.write("Installed bash completion script in {}\n".format(install_path))
     return OK