예제 #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
파일: meta.py 프로젝트: vutruong1711/leaf
 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
파일: build.py 프로젝트: legatoproject/leaf
 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
파일: select.py 프로젝트: vutruong1711/leaf
 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
파일: config.py 프로젝트: sam974/leaf
 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
파일: config.py 프로젝트: sam974/leaf
 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
파일: config.py 프로젝트: sam974/leaf
 def __init__(self):
     LeafCommand.__init__(self, "list", "list all available settings")
예제 #25
0
파일: build.py 프로젝트: legatoproject/leaf
 def __init__(self):
     LeafCommand.__init__(self, "index", "build a repository index.json")
예제 #26
0
파일: config.py 프로젝트: sam974/leaf
 def __init__(self):
     LeafCommand.__init__(self, "get", "get setting value")
예제 #27
0
파일: build.py 프로젝트: legatoproject/leaf
 def __init__(self):
     LeafCommand.__init__(self, "pack", "build a package")
예제 #28
0
파일: search.py 프로젝트: vutruong1711/leaf
 def __init__(self):
     LeafCommand.__init__(self, "search", "search for available packages")