chore(cli): cli code update

This commit is contained in:
Sebastian Thiel
2015-06-19 18:04:55 +02:00
parent 62db3ae87c
commit d0fb7a5ccc
61 changed files with 642 additions and 642 deletions

View File

@@ -65,7 +65,7 @@ impl<'n, 'a> Engine<'n, 'a> {
continue;
}
let type_info =
let type_info: Option<(&'static str, JsonTypeInfo)> =
match &temp_cursor.to_string()[..] {
"ack-ids" => Some(("ackIds", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Vec })),
_ => {
@@ -150,7 +150,7 @@ impl<'n, 'a> Engine<'n, 'a> {
continue;
}
let type_info =
let type_info: Option<(&'static str, JsonTypeInfo)> =
match &temp_cursor.to_string()[..] {
"ack-deadline-seconds" => Some(("ackDeadlineSeconds", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })),
"topic" => Some(("topic", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
@@ -401,7 +401,7 @@ impl<'n, 'a> Engine<'n, 'a> {
continue;
}
let type_info =
let type_info: Option<(&'static str, JsonTypeInfo)> =
match &temp_cursor.to_string()[..] {
"ack-deadline-seconds" => Some(("ackDeadlineSeconds", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })),
"ack-id" => Some(("ackId", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
@@ -487,7 +487,7 @@ impl<'n, 'a> Engine<'n, 'a> {
continue;
}
let type_info =
let type_info: Option<(&'static str, JsonTypeInfo)> =
match &temp_cursor.to_string()[..] {
"push-config.attributes" => Some(("pushConfig.attributes", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Map })),
"push-config.push-endpoint" => Some(("pushConfig.pushEndpoint", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
@@ -573,7 +573,7 @@ impl<'n, 'a> Engine<'n, 'a> {
continue;
}
let type_info =
let type_info: Option<(&'static str, JsonTypeInfo)> =
match &temp_cursor.to_string()[..] {
"return-immediately" => Some(("returnImmediately", JsonTypeInfo { jtype: JsonType::Boolean, ctype: ComplexType::Pod })),
"max-messages" => Some(("maxMessages", JsonTypeInfo { jtype: JsonType::Int, ctype: ComplexType::Pod })),
@@ -659,7 +659,7 @@ impl<'n, 'a> Engine<'n, 'a> {
continue;
}
let type_info =
let type_info: Option<(&'static str, JsonTypeInfo)> =
match &temp_cursor.to_string()[..] {
"name" => Some(("name", JsonTypeInfo { jtype: JsonType::String, ctype: ComplexType::Pod })),
_ => {
@@ -906,7 +906,7 @@ impl<'n, 'a> Engine<'n, 'a> {
continue;
}
let type_info =
let type_info: Option<(&'static str, JsonTypeInfo)> =
match &temp_cursor.to_string()[..] {
_ => {
let suggestion = FieldCursor::did_you_mean(key, &vec![]);