Exemple #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
Exemple #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
Exemple #3
0
 def __init__(self):
     LeafCommand.__init__(self, "install",
                          "install packages (download + extract)")
Exemple #4
0
 def __init__(self):
     LeafCommand.__init__(self, "manifest", "build a package manifest.json")
Exemple #5
0
 def __init__(self):
     LeafCommand.__init__(self, "status", "print leaf status")
Exemple #6
0
 def __init__(self, *args, ip=None, **kwargs):
     LeafCommand.__init__(self, *args, **kwargs)
     self.__installedPackage = ip
Exemple #7
0
 def __init__(self):
     LeafCommand.__init__(self, "upgrade",
                          "upgrade packages to latest version")
Exemple #8
0
 def __init__(self):
     LeafCommand.__init__(self, "list", "list installed packages")
Exemple #9
0
 def __init__(self):
     LeafCommand.__init__(self, "help", "read leaf documentation")
Exemple #10
0
 def __init__(self):
     LeafCommand.__init__(self, "inspect",
                          "display information about packages")
Exemple #11
0
 def __init__(self):
     LeafCommand.__init__(self, "enable", "enable a remote repository")
Exemple #12
0
 def __init__(self):
     LeafCommand.__init__(self, "remove", "remove a remote repository")
Exemple #13
0
 def __init__(self):
     LeafCommand.__init__(self, "add", "add a remote repository")
Exemple #14
0
 def __init__(self):
     LeafCommand.__init__(self, "list", "list remote repositories")
Exemple #15
0
 def __init__(self):
     LeafCommand.__init__(self, "fetch",
                          "fetch content from enabled remotes")
Exemple #16
0
 def __init__(self):
     LeafCommand.__init__(self, "prereq", "check prereq packages")
Exemple #17
0
 def __init__(self):
     LeafCommand.__init__(self, "uninstall", "remove packages")
Exemple #18
0
 def __init__(self):
     LeafCommand.__init__(self, "select", "change current profile and install missing packages")
Exemple #19
0
 def __init__(self):
     LeafCommand.__init__(self, "sync", "performs sync operation")
Exemple #20
0
 def __init__(self):
     LeafCommand.__init__(self, "set", "update a setting")
Exemple #21
0
 def __init__(self):
     LeafCommand.__init__(self, "deps", "Build the dependency chain")
Exemple #22
0
 def __init__(self):
     LeafCommand.__init__(self, "reset", "reset a setting")
Exemple #23
0
 def __init__(self):
     LeafCommand.__init__(self,
                          "run",
                          "execute binary provided by installed packages",
                          allow_uargs=True)
Exemple #24
0
 def __init__(self):
     LeafCommand.__init__(self, "list", "list all available settings")
Exemple #25
0
 def __init__(self):
     LeafCommand.__init__(self, "index", "build a repository index.json")
Exemple #26
0
 def __init__(self):
     LeafCommand.__init__(self, "get", "get setting value")
Exemple #27
0
 def __init__(self):
     LeafCommand.__init__(self, "pack", "build a package")
Exemple #28
0
 def __init__(self):
     LeafCommand.__init__(self, "search", "search for available packages")