Skip to content

Commit f4a1c13

Browse files
committed
fix: '>' character is reserved
1 parent a537bff commit f4a1c13

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/block_quote.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use extism_pdk::{plugin_fn, FnResult, Json, WithReturnCode};
33

44
pub(crate) fn metadata_block_quote() -> Metadata {
55
Metadata {
6-
command_name: ">".to_string(),
6+
command_name: "quote".to_string(),
77
call_name: "block_quote".to_string(),
88
argument_types: vec![("text".to_string(), Type::TInline)],
99
return_type: Type::TBlock,
@@ -14,7 +14,7 @@ pub(crate) fn metadata_block_quote() -> Metadata {
1414
pub fn block_quote(Json(args): Json<Vec<Value>>) -> FnResult<String> {
1515
if args.len() != 1 {
1616
return Err(WithReturnCode::new(
17-
anyhow::anyhow!("Usage: {{ravenlog.> text}}"),
17+
anyhow::anyhow!("Usage: {{ravenlog.quote text}}"),
1818
1,
1919
));
2020
}

src/inline_quote.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use extism_pdk::{plugin_fn, FnResult, Json, WithReturnCode};
33

44
pub(crate) fn metadata_inline_quote() -> Metadata {
55
Metadata {
6-
command_name: ">".to_string(),
6+
command_name: "quote".to_string(),
77
call_name: "inline_quote".to_string(),
88
argument_types: vec![("text".to_string(), Type::TInline)],
99
return_type: Type::TInline,
@@ -14,7 +14,7 @@ pub(crate) fn metadata_inline_quote() -> Metadata {
1414
pub fn inline_quote(Json(args): Json<Vec<Value>>) -> FnResult<String> {
1515
if args.len() != 1 {
1616
return Err(WithReturnCode::new(
17-
anyhow::anyhow!("Usage: [ravenlog.> text]"),
17+
anyhow::anyhow!("Usage: [ravenlog.quote text]"),
1818
1,
1919
));
2020
}

0 commit comments

Comments
 (0)