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