summary => 1,
add => 1,
show => 1,
+ status => 1,
edit => 1,
comment => 1,
attach => 1,
my ($issue_name) = @ARGV;
show($cil, $issue_name);
+ }
+ elsif ( $command eq 'status' ) {
+ my ($issue_name, $status) = @ARGV;
+ status($cil, $issue_name, $status);
+
}
elsif ( $command eq 'add' ) {
add($cil);
display_issue_full($cil, $issue);
}
+sub status {
+ my ($cil, $issue_name, $status) = @_;
+
+ unless ( defined $status ) {
+ fatal("provide a status to set this issue to");
+ }
+
+ # firstly, read the issue in
+ my $issue = CIL::Issue->new_from_name($cil, $issue_name);
+ unless ( defined $issue ) {
+ fatal("Couldn't load issue '$issue_name'");
+ }
+
+ # set the status for this issue
+ $issue->Status( $status );
+ $issue->save($cil);
+
+ display_issue($cil, $issue);
+}
+
sub add {
my ($cil, $issue_name) = @_;
summary
list
show ISSUE
+ status ISSUE NEW_STATUS
edit ISSUE
comment ISSUE
attach ISSUE FILENAME
... added issue 'cafebabe' ...
$ cil show cafebabe
$ cil edit cafebabe
+ $ cil status cafebabe InProgress
$ cil comment cafebabe
... added comment 'deadbeef' ...
Shows the issue name with more detail.
+=item status ISSUE NEW_STATUS
+
+Shortcut so that you can set a new status on an issue without having to edit
+it.
+
=item edit ISSUE
Edits the issue. If it changes, set the updates time to now.
Summary: Ability to set Issue Status' from the command line
-Status: New
+Status: Finished
CreatedBy: Andrew Chilton <andychilton@gmail.com>
AssignedTo: Andrew Chilton <andychilton@gmail.com>
Label: Mileston-v0.2
Label: Release-v0.1
Label: Type-Enhancement
+Comment: 792a4acf
Inserted: 2008-06-22T04:00:20
-Updated: 2008-06-22T04:00:20
+Updated: 2008-06-22T04:02:46
The ability to do something like the following would be good.