30: def initialize
31: super
32:
33:
34:
35:
36: @host = '127.0.0.1'
37:
38: @port = 8474
39:
40: @authKey = nil
41:
42:
43: @regExpMode = false
44:
45: @mandatoryArgs = '<command> [arg1 arg2 ...]'
46:
47:
48:
49:
50:
51:
52:
53:
54:
55: @commands = [
56: { :label => 'status',
57: :args => [],
58: :descr => 'Display the status of the available projects' },
59: { :label => 'terminate',
60: :args => [],
61: :descr => 'Terminate the TaskJuggler daemon' },
62: { :label => 'add',
63: :args => [ 'tjp file', '*tji file'],
64: :descr => 'Add a new project or update and existing one' },
65: { :label => 'remove',
66: :args => [ '+project ID' ],
67: :descr => 'Remove the project with the specified ID from the daemon' },
68: { :label => 'report',
69: :args => [ 'project ID', '+report ID', '!=', '*tji file'],
70: :descr => 'Generate the report with the provided ID for ' +
71: 'the project with the given ID'},
72: { :label => 'list-reports',
73: :args => [ 'project ID', '!report ID' ],
74: :descr => 'List all available reports of the project or those ' +
75: 'that match the provided report ID' },
76: { :label => 'check-ts',
77: :args => [ 'project ID', 'time sheet' ],
78: :descr => 'Check the provided time sheet for correctness' +
79: 'against the project with the given ID'},
80: { :label => 'check-ss',
81: :args => [ 'project ID', 'status sheet' ],
82: :descr => 'Check the provided status sheet for correctness ' +
83: 'against the project with the given ID'}
84: ]
85: end