Skip to content

Commit

Permalink
test done
Browse files Browse the repository at this point in the history
  • Loading branch information
Pianoopera committed Sep 4, 2024
1 parent 64d584a commit a2c3a56
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion make-expected.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ OUTDIR="tests/expected"
# cargo run -- blocks -x DELETE -i 12345678-1234-1234-1234-123456789012 > $OUTDIR/bloks_delete1.txt
# cargo run -- blocks -i 12345678-1234-1234-1234-123456789012 > $OUTDIR/blocks_ret1.txt
# cargo run -- children_blocks -i 12345678-1234-1234-1234-123456789012 > $OUTDIR/child_blocks.txt
cargo run -- search -f tests/fixture/post/search_by_title_request1.json > $OUTDIR/search_by_title.txt
# cargo run -- search -f tests/fixture/post/search_by_title_request1.json > $OUTDIR/search_by_title.txt
3 changes: 2 additions & 1 deletion src/cmds/property_pages_cmd.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use clap::Command;

use crate::{
args::{notion_id::NotionIdArg, property_id::PropertyIdArg},
args::{notion_id::NotionIdArg, property_id::PropertyIdArg, x::X},
// cmds::execute::handler,
method::Method
};
Expand Down Expand Up @@ -35,6 +35,7 @@ impl PropertyPages {
pub fn property_pages_subcommand() -> Command {
Command::new("property_pages")
.about("Output Notion API URLs for property pages")
.arg(X::x_option())
.arg(NotionIdArg::id_option())
.arg(PropertyIdArg::id_option())
}
4 changes: 2 additions & 2 deletions src/cmds/search_cmd.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use clap::Command;

use crate::args::{file::File, notion_id::NotionIdArg};
use crate::args::file::File;

pub struct Search {
pub file_path: String,
Expand All @@ -23,7 +23,7 @@ impl Search {
}

pub fn search_subcommand() -> Command {
Command::new("serach")
Command::new("search")
.about("Output Notion API URLs for query databases")
.arg(File::file_option())
}

0 comments on commit a2c3a56

Please sign in to comment.