Пример #1
0
 def __init__(self,
              name,
              description,
              profile_nargs=None,
              profile_completer=None):
     LeafCommand.__init__(self, name, description)
     self.profile_nargs = profile_nargs
     self.profile_completer = profile_completer
Пример #2
0
 def __init__(self,
              name: str,
              description: str,
              commands: str,
              accept_default: bool = False,
              plugins_manager: LeafPluginManager = None):
     LeafCommand.__init__(self, name, description)
     self.__commands = commands
     self.__accept_default = accept_default
     self.__plugins_manager = plugins_manager
     # Link subcommands to current Meta command
     for c in self.__commands:
         c.parent = self
Пример #3
0
 def __init__(self):
     LeafCommand.__init__(self, "install",
                          "install packages (download + extract)")
Пример #4
0
 def __init__(self):
     LeafCommand.__init__(self, "manifest", "build a package manifest.json")
Пример #5
0
 def __init__(self):
     LeafCommand.__init__(self, "status", "print leaf status")
Пример #6
0
 def __init__(self, *args, ip=None, **kwargs):
     LeafCommand.__init__(self, *args, **kwargs)
     self.__installedPackage = ip
Пример #7
0
 def __init__(self):
     LeafCommand.__init__(self, "upgrade",
                          "upgrade packages to latest version")
Пример #8
0
 def __init__(self):
     LeafCommand.__init__(self, "list", "list installed packages")
Пример #9
0
 def __init__(self):
     LeafCommand.__init__(self, "help", "read leaf documentation")
Пример #10
0
 def __init__(self):
     LeafCommand.__init__(self, "inspect",
                          "display information about packages")
Пример #11
0
 def __init__(self):
     LeafCommand.__init__(self, "enable", "enable a remote repository")
Пример #12
0
 def __init__(self):
     LeafCommand.__init__(self, "remove", "remove a remote repository")
Пример #13
0
 def __init__(self):
     LeafCommand.__init__(self, "add", "add a remote repository")
Пример #14
0
 def __init__(self):
     LeafCommand.__init__(self, "list", "list remote repositories")
Пример #15
0
 def __init__(self):
     LeafCommand.__init__(self, "fetch",
                          "fetch content from enabled remotes")
Пример #16
0
 def __init__(self):
     LeafCommand.__init__(self, "prereq", "check prereq packages")
Пример #17
0
 def __init__(self):
     LeafCommand.__init__(self, "uninstall", "remove packages")
Пример #18
0
 def __init__(self):
     LeafCommand.__init__(self, "select", "change current profile and install missing packages")
Пример #19
0
 def __init__(self):
     LeafCommand.__init__(self, "sync", "performs sync operation")
Пример #20
0
 def __init__(self):
     LeafCommand.__init__(self, "set", "update a setting")
Пример #21
0
 def __init__(self):
     LeafCommand.__init__(self, "deps", "Build the dependency chain")
Пример #22
0
 def __init__(self):
     LeafCommand.__init__(self, "reset", "reset a setting")
Пример #23
0
 def __init__(self):
     LeafCommand.__init__(self,
                          "run",
                          "execute binary provided by installed packages",
                          allow_uargs=True)
Пример #24
0
 def __init__(self):
     LeafCommand.__init__(self, "list", "list all available settings")
Пример #25
0
 def __init__(self):
     LeafCommand.__init__(self, "index", "build a repository index.json")
Пример #26
0
 def __init__(self):
     LeafCommand.__init__(self, "get", "get setting value")
Пример #27
0
 def __init__(self):
     LeafCommand.__init__(self, "pack", "build a package")
Пример #28
0
 def __init__(self):
     LeafCommand.__init__(self, "search", "search for available packages")