summaryrefslogtreecommitdiff
path: root/icktool
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-01-18 15:14:28 +0200
committerLars Wirzenius <liw@liw.fi>2018-01-18 15:18:03 +0200
commit708a497c369601909bc57768bc929fdccc235406 (patch)
treee6f5a025a280d74d13b28452dfa6e6dc3b8e2953 /icktool
parentb7f0f336a6300f805db64139a507996df182d765 (diff)
downloadick2-708a497c369601909bc57768bc929fdccc235406.tar.gz
Change: rename 'name' field on pipelines to 'pipeline'
For consistency.
Diffstat (limited to 'icktool')
-rwxr-xr-xicktool8
1 files changed, 4 insertions, 4 deletions
diff --git a/icktool b/icktool
index 35cb251..494c85c 100755
--- a/icktool
+++ b/icktool
@@ -169,7 +169,7 @@ class Icktool(cliapp.Application):
projects = self._new_rc('/projects', 'project')
self._make_it_so(projects, obj.get('projects', []))
- pipelines = self._new_rc('/pipelines', 'name')
+ pipelines = self._new_rc('/pipelines', 'pipeline')
self._make_it_so(pipelines, obj.get('pipelines', []))
def _make_it_so(self, rc, objs):
@@ -203,16 +203,16 @@ class Icktool(cliapp.Application):
rc.delete(name)
def cmd_list_pipelines(self, args):
- rc = self._new_rc('/pipelines', 'name')
+ rc = self._new_rc('/pipelines', 'pipeline')
self._prettyson(rc.list())
def cmd_create_pipeline(self, args):
- rc = self._new_rc('/pipelines', 'name')
+ rc = self._new_rc('/pipelines', 'pipeline')
obj = self._read_object()
rc.create(obj)
def cmd_update_pipeline(self, args):
- rc = self._new_rc('/pipelines', 'name')
+ rc = self._new_rc('/pipelines', 'pipeline')
obj = self._read_object()
rc.update(obj)