From b6f20f2e937e46c6da5be8b11e838f26019c16cb Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Mon, 5 Aug 2019 10:20:09 +0200 Subject: [PATCH] renamed module client.py to cli.py --- google/refine/__main__.py | 10 +++++----- google/refine/{client.py => cli.py} | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) rename google/refine/{client.py => cli.py} (99%) diff --git a/google/refine/__main__.py b/google/refine/__main__.py index fd1ff2d..fb81405 100644 --- a/google/refine/__main__.py +++ b/google/refine/__main__.py @@ -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 diff --git a/google/refine/client.py b/google/refine/cli.py similarity index 99% rename from google/refine/client.py rename to google/refine/cli.py index 708ec1c..13d3b47 100644 --- a/google/refine/client.py +++ b/google/refine/cli.py @@ -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.