def help(): # rgio.prompt("rg <dev cmd> [-m <message>] ") rgio.prompt("rg <svc cmd> [-e <env>] [-s <system>] [-c <run.yaml>]") # rgio.prompt("rg <svc cmd> [-e <env>] [-s <system>] [-x <resource>] [-f <script>] [-v <vardef>]") # rgio.prompt("rg <pub cmd> [-p <project>] [-l <publish plan> ] [-h [@|%]<host>] [-t [@]<tag>] [-z <rguser> ]") # rgio.prompt("rg <batch cmd> [-p <project>] [-l <publish plan> ] [-h [@|%]<host>] [-t [@]<tag>] [-z <rguser> ]") rgio.prompt("\ncommon args : [-d <level> ]\n")
def _usage(self): if hasattr(self,"__doc__") and self.__doc__ is not None: rgio.prompt(str(self.__doc__)) else: rgio.prompt("%s has no more info" % self.__class__) pass
def load(data_file): rargs = run_args() if os.path.exists(data_file): try: with open(data_file, 'r') as f: rargs = pickle.load(f) except Exception as e: rgio.prompt("load rigger file fail!") rargs.clear() return rargs
def load(data_file): rargs = run_args() if os.path.exists(data_file): try: with open(data_file,'r') as f: rargs = pickle.load(f) except Exception as e : rgio.prompt("load rigger file fail!") rargs.clear() return rargs
def load(dfile=None): rargs = run_args() data_file = dfile if data_file is None : data_file = rargs.rg.save_path if os.path.exists(data_file): try: with open(data_file,'r') as f: rargs = pickle.load(f) except Exception as e : rgio.prompt("load rigger file fail!") rargs.clear() return rargs
def load(dfile=None): rargs = run_args() data_file = dfile if data_file is None: data_file = rargs.rg.save_path if os.path.exists(data_file): try: with open(data_file, 'r') as f: rargs = pickle.load(f) except Exception as e: rgio.prompt("load rigger file fail!") rargs.clear() return rargs
def update_ver(self): old_ver = self.info() chose_update_version="plese chose working(w), fixbug(b), add feature(f) , struct revolution(s) ?" print(chose_update_version) recomTag = False needCommit = False chose = sys.stdin.read(1) if chose == "w": self.up_commit() pass if chose == "b": self.up_bugfix() self.up_commit() if chose == "f": self.up_feature() self.up_commit() if chose == "s": self.up_struct() self.up_commit() self.save() rgio.prompt("version updated : [$OLD] ---> [$NEW]",OLD=old_ver,NEW=self.info())
def update_ver(self): old_ver = self.info() chose_update_version = "plese chose working(w), fixbug(b), add feature(f) , struct revolution(s) ?" print(chose_update_version) recomTag = False needCommit = False chose = sys.stdin.read(1) if chose == "w": self.up_commit() pass if chose == "b": self.up_bugfix() self.up_commit() if chose == "f": self.up_feature() self.up_commit() if chose == "s": self.up_struct() self.up_commit() self.save() rgio.prompt("version updated : [$OLD] ---> [$NEW]", OLD=old_ver, NEW=self.info())
def help(): rgio.prompt("rg <svc cmd> [-e <env>] [-s <system>] [-c <run.yaml>] ") rgio.prompt("\ncommon args : [-d <level> ]\n")