Commits

Nik Cubrilovic committed 02f80ec

tasks outline support

Comments (0)

Files changed (3)

cexbot/command_utils.py

     logging.error('Invalid config option')
     return 1
 
-  return 1
-  if args.task == 'genconfig':
-    return cexbot.config.write_blank()
-
-  if args.task == 'editconfig':
-    return cexbot.config.edit_config()
-
-  if args.task == 'update':
+  elif args.command == 'update':
     return check_update()
 
   if args.task == 'cleardata':
   parser_order.add_argument('-p', dest='price', action='store_true', help='price')
   parser_order.add_argument('-a', dest='amount', action='store_true', help='amount')
 
+  parser_update = subparsers.add_parser('update', help='check for updates')
+
   return parser.parse_args()
 
 def cl_error(msg=""):
 #!/usr/bin/env python
 """
-	cexbot.tasks - all cl tasks go here.
+	cexbot.tasks - defines a task
 """
 
-def task_test():
-	print 'test task'
-	return True
+class Tasks(object):
+
+	def __init__(timer=1):
+		self.timer=timer

cexbot/tasks/__init__.py

Empty file added.