From 8ebb8430527a445765404847174deaa3ec501453 Mon Sep 17 00:00:00 2001 From: Stefan Oderbolz Date: Wed, 10 Jun 2015 11:26:22 +0200 Subject: [PATCH] Add documentation for clearsource command --- README.rst | 3 +++ ckanext/harvest/commands/harvester.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/README.rst b/README.rst index 2456375..2f7a00d 100644 --- a/README.rst +++ b/README.rst @@ -115,6 +115,9 @@ The following operations can be run from the command line using the harvester rmsource {id} - remove (inactivate) a harvester source + harvester clearsource {id} + - clear a harvester source (delete all associtated datasets) + harvester sources [all] - lists harvest sources If 'all' is defined, it also shows the Inactive sources diff --git a/ckanext/harvest/commands/harvester.py b/ckanext/harvest/commands/harvester.py index 75fa163..6499eda 100644 --- a/ckanext/harvest/commands/harvester.py +++ b/ckanext/harvest/commands/harvester.py @@ -20,6 +20,9 @@ class Harvester(CkanCommand): harvester rmsource {id} - remove (inactivate) a harvester source + harvester clearsource {id} + - clear a harvester source (delete all associtated datasets) + harvester sources [all] - lists harvest sources If 'all' is defined, it also shows the Inactive sources