Exemple #1
0
 def __init__(self):
     super(HttpGetBuiltin,
           self).__init__('http-get',
                          output=HTTPResponse,
                          input=None,
                          singlevalue=True,
                          argspec=(ArgSpec('host'), ArgSpec('path',
                                                            opt=True)))
Exemple #2
0
 def __init__(self):
     super(UniqBuiltin, self).__init__('uniq',
                                       input=InputStreamSchema('any'),
                                       output='any',
                                       options=[['-c', '--count']],
                                       argspec=(ArgSpec('property',
                                                        opt=True), ))
Exemple #3
0
 def __init__(self):
     super(FSearchBuiltin,
           self).__init__('fsearch',
                          output=FileStringMatch,
                          argspec=('regexp', ArgSpec('directory',
                                                     opt=True)),
                          options=[['-i', '--ignore-case']])
Exemple #4
0
 def __init__(self):
     super(PropBuiltin, self).__init__('prop',
                                       input=InputStreamSchema('any'),
                                       output='any',
                                       idempotent=True,
                                       argspec=(ArgSpec('name'), ),
                                       options=[['-t', '--tuple']],
                                       threaded=True)
Exemple #5
0
 def __init__(self):
     super(FilterBuiltin,
           self).__init__('filter',
                          input=InputStreamSchema('any'),
                          output='identity',
                          options=[['-s', '--stringify'],
                                   ['-i', '--ignore-case'],
                                   ['-v', '--invert-match']],
                          argspec=('regexp', ArgSpec('property', opt=True)))
Exemple #6
0
 def __init__(self):
     super(SelectionBuiltin, self).__init__(
         'selection',
         aliases=['sel'],
         argspec=(ArgSpec('index', opt=True), ),
         threaded=False,
         output=OutputStreamSchema(
             'any',
             typefunc=lambda hotwire: hotwire.get_current_output_type()))
Exemple #7
0
 def __init__(self):
     super(PathBuiltin, self).__init__('path',
                                       output=str,
                                       argspec=(ArgSpec('path',
                                                        opt=True), ),
                                       options=[['-a', '--prefix'],
                                                ['-s', '--suffix'],
                                                ['-d', '--del']],
                                       threaded=False)
Exemple #8
0
 def __init__(self):
     super(PyMapBuiltin,
           self).__init__('py-map',
                          argspec=(ArgSpec('expression'), ),
                          input=InputStreamSchema('any', optional=True),
                          output=OutputStreamSchema('any'))
Exemple #9
0
 def __init__(self):
     super(WalkBuiltin, self).__init__('walk',
                                       output=File,
                                       argspec=(ArgSpec('directory', opt=True),),
                                       options=[['-a', '--all']])
Exemple #10
0
 def __init__(self):
     super(PyFilterBuiltin,
           self).__init__('py-filter',
                          argspec=(ArgSpec('expression'), ),
                          input=InputStreamSchema('any'),
                          output='identity')
Exemple #11
0
 def __init__(self):
     super(HelpBuiltin, self).__init__('help',
                                       output=HelpItem,
                                       argspec=(ArgSpec('builtin', opt=True),))
Exemple #12
0
 def __init__(self):
     super(ReplaceBuiltin, self).__init__('replace',
                                          input=InputStreamSchema('any'),
                                          output='identity',
                                          argspec=(ArgSpec('regexp'),
                                                   ArgSpec('replacement')))