[Rt-commit] rt branch, 4.2/rest-ticket-content-type, updated. rt-4.0.6-337-gcbe383b
? sunnavy
sunnavy at bestpractical.com
Wed Jun 13 12:51:45 EDT 2012
The branch, 4.2/rest-ticket-content-type has been updated
via cbe383b4c8da003b897e01fa5166ed85f06fcb38 (commit)
via d0b44927739f97d5502a6281c89e5ec21e73ba79 (commit)
from 9d8a7e68d5184aaebbc9316d1cb7cac337fa25e1 (commit)
Summary of changes:
bin/rt.in | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit d0b44927739f97d5502a6281c89e5ec21e73ba79
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Jun 13 23:59:01 2012 +0800
doc create ticket with content-type
diff --git a/bin/rt.in b/bin/rt.in
index 19622dc..11e21b1 100755
--- a/bin/rt.in
+++ b/bin/rt.in
@@ -2303,12 +2303,14 @@ Text:
-S var=val
Submits the specified variable with the request.
-t type Specifies object type.
+ -ct content-type Specifies content type of message(tickets only).
Examples:
# Interactive (starts $EDITOR with a form).
rt edit ticket/3
rt create -t ticket
+ rt create -t ticket -ct text/html
# Non-interactive.
rt edit ticket/1-3 add cc=foo at example.com set priority=3 due=tomorrow
commit cbe383b4c8da003b897e01fa5166ed85f06fcb38
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Jun 14 00:27:32 2012 +0800
-ct fix for rt's comment cmd
diff --git a/bin/rt.in b/bin/rt.in
index 11e21b1..c97922a 100755
--- a/bin/rt.in
+++ b/bin/rt.in
@@ -751,7 +751,7 @@ sub comment {
if (/^-e$/) {
$edit = 1;
}
- elsif (/^-[abcmw]$/) {
+ elsif (/^-(?:[abcmw]|ct)$/) {
unless (@ARGV) {
whine "No argument specified with $_.";
$bad = 1; last;
@@ -764,6 +764,9 @@ sub comment {
}
push @files, shift @ARGV;
}
+ elsif (/-ct/) {
+ $content_type = shift @ARGV;
+ }
elsif (/-([bc])/) {
my $a = $_ eq "-b" ? \@bcc : \@cc;
@$a = split /\s*,\s*/, shift @ARGV;
@@ -775,9 +778,6 @@ sub comment {
while (<STDIN>) { $msg .= $_ }
}
}
- elsif (/-ct/) {
- $content_type = shift @ARGV;
- }
elsif (/-w/) { $wtime = shift @ARGV }
}
elsif (!$id && m|^(?:ticket/)?($idlist)$|) {
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list