64 CommandTool.__init__(self)
66 CommandTool.addOption(self,
"name",
"n", type=str, help=
"the o2o job name")
67 CommandTool.addOption(self,
"configFile",
"c", type=str, help=
"the JSON configuration file path")
68 CommandTool.addOption(self,
"interval",
"i", type=int, help=
"the chron job interval")
69 CommandTool.addOption(self,
"db", type=str, help=
"the target database: pro ( for prod ) or dev ( for prep ). default=pro")
70 CommandTool.addOption(self,
"auth",
"a", type=str, help=
"path of the authentication file")
71 CommandTool.addCommand( self,
"create",
"create a new O2O job",
"name",
"configFile",
"interval")
72 CommandTool.addCommand(self,
"setConfig",
"set a new configuration for the specified job",
"name",
"configFile" )
73 CommandTool.addCommand(self,
"setInterval",
"set a new execution interval for the specified job",
"name",
"interval" )
74 CommandTool.addCommand(self,
"enable",
"enable the O2O job",
"name" )
75 CommandTool.addCommand(self,
"disable",
"disable the O2O job" ,
"name")
76 CommandTool.addCommand(self,
"migrate",
"migrate the tag info for the jobs in configuration entries" )
77 CommandTool.addCommand(self,
"listJobs",
"list the registered jobs" )
78 CommandTool.addCommand(self,
"listConf",
"shows the configurations for the specified job",
"name")