renamed module client.py to cli.py
This commit is contained in:
parent
4a455282f5
commit
b6f20f2e93
|
@ -24,7 +24,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from google.refine import refine
|
from google.refine import refine
|
||||||
from google.refine import client
|
from google.refine import cli
|
||||||
|
|
||||||
reload(sys)
|
reload(sys)
|
||||||
sys.setdefaultencoding('utf-8')
|
sys.setdefaultencoding('utf-8')
|
||||||
|
@ -191,9 +191,9 @@ def main():
|
||||||
args[0] = idlist[0]
|
args[0] = idlist[0]
|
||||||
|
|
||||||
if options.list:
|
if options.list:
|
||||||
client.list_projects()
|
cli.list_projects()
|
||||||
if options.create:
|
if options.create:
|
||||||
client.create_project(options)
|
cli.create_project(options)
|
||||||
if options.delete:
|
if options.delete:
|
||||||
project = refine.RefineProject(args[0])
|
project = refine.RefineProject(args[0])
|
||||||
project.delete()
|
project.delete()
|
||||||
|
@ -206,10 +206,10 @@ def main():
|
||||||
return project
|
return project
|
||||||
if options.export or options.output:
|
if options.export or options.output:
|
||||||
project = refine.RefineProject(args[0])
|
project = refine.RefineProject(args[0])
|
||||||
client.export_project(project, options)
|
cli.export_project(project, options)
|
||||||
return project
|
return project
|
||||||
if options.info:
|
if options.info:
|
||||||
client.info(args[0])
|
cli.info(args[0])
|
||||||
project = refine.RefineProject(args[0])
|
project = refine.RefineProject(args[0])
|
||||||
return project
|
return project
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#! /usr/bin/env python
|
#! /usr/bin/env python
|
||||||
"""
|
"""
|
||||||
Commands provided for the CLI and interactive usage
|
Functions used by the command line interface (CLI)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Copyright (c) 2011 Paul Makepeace, Real Programmers. All rights reserved.
|
# Copyright (c) 2011 Paul Makepeace, Real Programmers. All rights reserved.
|
Loading…
Reference in New Issue