renamed module client.py to cli.py

This commit is contained in:
Felix Lohmeier 2019-08-05 10:20:09 +02:00
parent 4a455282f5
commit b6f20f2e93
2 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@ import os
import sys
from google.refine import refine
from google.refine import client
from google.refine import cli
reload(sys)
sys.setdefaultencoding('utf-8')
@ -191,9 +191,9 @@ def main():
args[0] = idlist[0]
if options.list:
client.list_projects()
cli.list_projects()
if options.create:
client.create_project(options)
cli.create_project(options)
if options.delete:
project = refine.RefineProject(args[0])
project.delete()
@ -206,10 +206,10 @@ def main():
return project
if options.export or options.output:
project = refine.RefineProject(args[0])
client.export_project(project, options)
cli.export_project(project, options)
return project
if options.info:
client.info(args[0])
cli.info(args[0])
project = refine.RefineProject(args[0])
return project

View File

@ -1,6 +1,6 @@
#! /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.