示例#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
 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
文件: 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
 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
 def __init__(self):
     LeafCommand.__init__(self, "pack", "build a package")
示例#28
0
 def __init__(self):
     LeafCommand.__init__(self, "search", "search for available packages")