MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / init_dir

Method init_dir

crates/chat-cli/src/cli/chat/tools/todo.rs:52–57  ·  view source on GitHub ↗

Creates a local directory to store todo lists

(os: &Os)

Source from the content-addressed store, hash-verified

50impl TodoListState {
51 /// Creates a local directory to store todo lists
52 pub async fn init_dir(os: &Os) -> Result<()> {
53 os.fs
54 .create_dir_all(os.env.current_dir()?.join(get_todo_list_dir(os)?))
55 .await?;
56 Ok(())
57 }
58
59 /// Loads a TodoListState with the given id
60 pub async fn load(os: &Os, id: &str) -> Result<Self> {

Callers

nothing calls this directly

Calls 4

get_todo_list_dirFunction · 0.85
create_dir_allMethod · 0.80
joinMethod · 0.80
current_dirMethod · 0.80

Tested by

no test coverage detected