Beispiel #1
0
 def core_args(self):
     core_args = super(Fab, self).core_args()
     my_args = [
         Argument(
             names=("S", "ssh-config"),
             help="Path to runtime SSH config file.",
         ),
         Argument(
             names=("H", "hosts"),
             help="Comma-separated host name(s) to execute tasks against.",
         ),
         Argument(
             names=("i", "identity"),
             kind=list,  # Same as OpenSSH, can give >1 key
             # TODO: automatically add hint about iterable-ness to Invoke
             # help display machinery?
             help=
             "Path to runtime SSH identity (key) file. May be given multiple times.",  # noqa
         ),
         # TODO: worth having short flags for these prompt args?
         Argument(
             names=("prompt-for-login-password", ),
             kind=bool,
             help="Request an upfront SSH-auth password prompt.",
         ),
         Argument(
             names=("prompt-for-passphrase", ),
             kind=bool,
             help="Request an upfront SSH key passphrase prompt.",
         ),
     ]
     return core_args + my_args
Beispiel #2
0
	def core_args(self):
		core_args = super(Make, self).core_args()
		extra_args = [
			Argument(names=('verbose', 'v'), help="Enable verbose output from subcommands", default=False, kind=bool),
			Argument(names=('exclude-tags',), help="Exclude builders which have given tags (comma separated list)", default=""),
			Argument(names=('list',), help="HACK", default=False, kind=bool),
			Argument(names=('no-dedupe',), help="HACK", default=False, kind=bool)
		]
		return core_args + extra_args
Beispiel #3
0
 def core_args(self):
     core_args = super(FactoryProgram, self).core_args()
     extra_args = [
         Argument(names=('project', 'n'),
                  help="The project/package name being build"),
     ]
     return core_args + extra_args
Beispiel #4
0
 def core_args(self):
     filtered_args = self._get_filtered_args()
     extra_args = [
         Argument(
             names=('prompt-for-passphrase', ),
             kind=bool,
             default=True,
             help='Request an upfront SSH key passphrase prompt.',
         ),
     ]
     return filtered_args + extra_args
Beispiel #5
0
    def __init__(self, version=None, namespace=None, extra_arguments=None):

        if extra_arguments is None:
            self.extra_args = []
        else:
            self.extra_args = extra_arguments

        self.extra_args.append(
            Argument(
                name='log-level',
                help="set the application log level"
            )
        )

        super(App, self).__init__(version=version, namespace=namespace)