forked from psychoinformatics-de/datalad-tabby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclone.py
73 lines (73 loc) · 1.89 KB
/
clone.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#"""DataLad Tabby Clone command"""
#
#__docformat__ = 'restructuredtext'
#
#from os.path import curdir
#from os.path import abspath
#
#from datalad_next.commands import (
# EnsureCommandParameterization,
# ValidatedInterface,
# Parameter,
# build_doc,
# datasetmethod,
# eval_results,
# generic_result_renderer,
# get_status_dict,
# ParameterConstraintContext,
#)
#from datalad_next.constraints import (
# EnsurePath,
#)
#
#import logging
#lgr = logging.getLogger('datalad.tabby.clone')
#
#
#class CloneParameterValidator(EnsureCommandParameterization):
# """"""
#
# def __init__(self):
# super().__init__(
# param_constraints=dict(
# tabby_file=EnsurePath()
# ),
# joint_constraints={
# },
# )
#
#
## decoration auto-generates standard help
#@build_doc
## all commands must be derived from Interface
#class Clone(ValidatedInterface):
# # first docstring line is used a short description in the cmdline help
# # the rest is put in the verbose help and manpage
# """Short description of the command
#
# Long description of arbitrary volume.
# """
#
# _validator_ = CloneParameterValidator()
#
# # parameters of the command, must be exhaustive
# _params_ = dict(
# tabby_file=Parameter(
# args=("-t", "--tabby-file"),
# doc="""Just a placeholder for the besic setup"""),
# )
#
# @staticmethod
# # generic handling of command results (logging, rendering, filtering, ...)
# @eval_results
# # signature must match parameter list above
# # additional generic arguments are added by decorators
# def __call__(
# tabby_file=abspath(curdir),
# ):
# yield get_status_dict(
# action='tabby_clone',
# path=tabby_file,
# status='error',
# message="This command has not yet been implemented",
# )