aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/refcat/cli.py5
-rw-r--r--python/refcat/techreport.py14
2 files changed, 18 insertions, 1 deletions
diff --git a/python/refcat/cli.py b/python/refcat/cli.py
index c589310..a490553 100644
--- a/python/refcat/cli.py
+++ b/python/refcat/cli.py
@@ -7,7 +7,9 @@
Command line entry point for running various data tasks.
- $ refcat.pyz [COMMAND | TASK] [OPTIONS]
+ $ refcat.pyz TASK [OPTIONS]
+
+ $ refcat.pyz COMMAND [OPTIONS]
Commands: ls, ll, deps, tasks, files, config, cat, completion
@@ -32,6 +34,7 @@ from refcat import __version__
from refcat.deps import dump_deps, dump_deps_dot
from refcat.settings import LOGGING_CONF_FILE, settings
from refcat.tasks import *
+from refcat.techreport import *
from refcat.utils import columnize
# These are utility classes of luigi.
diff --git a/python/refcat/techreport.py b/python/refcat/techreport.py
new file mode 100644
index 0000000..904f9c9
--- /dev/null
+++ b/python/refcat/techreport.py
@@ -0,0 +1,14 @@
+
+"""
+Tasks for techreport.
+"""
+
+from refcat.tasks import Refcat, OpenCitations
+
+class COCIStats(Refcat):
+
+ def requires(self):
+ return OpenCitations()
+
+ def run(self):
+ print(self.input().path)