Exemple #1
0
 def __init__(self, prompt='>>> ',bucket=None, username=None, passwd=None, timeout=60, endpoint=upyun.ED_AUTO):
     cmd.Cmd.__init__(self)
     self.intro = manual.get_tips()
     self.doc_header=color.render_color('All commands you can use (type help <command> get more info):')
     self.undoc_header=color.render_color('All alias command:')
     self.prompt = color.render_color(prompt,'blue')
     self.init_upcloud(bucket, username, passwd, timeout, endpoint)
     self.current_local_workspace = os.path.abspath('.')
     self.sort_flag = 'name'
     self.reverse = False
Exemple #2
0
 def action_man(self, args):
     if args.command == 'welcome':
         print manual.get_tips()
     else:
         manual.get_manual(args.command, '-h')