Skip to content

Refactor server, add client HTTP library, add CLI#22

Merged
marcua merged 10 commits intomainfrom
add-cli
Jan 16, 2023
Merged

Refactor server, add client HTTP library, add CLI#22
marcua merged 10 commits intomainfrom
add-cli

Conversation

@marcua
Copy link
Copy Markdown
Owner

@marcua marcua commented Jan 16, 2023

Resolves #15

Comment thread src/hosted_db/paths.rs Outdated
let mut path: PathBuf = ["/tmp", "stacks", entity_slug].iter().collect();
if let Err(e) = fs::create_dir_all(&path) {
return Err(StacksError {
error_string: format!("Unable to crate entity path for {}: {}", entity_slug, e),
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

Comment thread src/http/client.rs Outdated
);

let response = reqwest::Client::new()
.post(self.make_url(format!("{}", entity)))
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no format

Comment thread src/http/server.rs Outdated
migrate!()
.run(&pool)
.await
.expect("Unable to run migration");
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plural

@marcua marcua changed the title [WIP] client libraries/CLI Refactor server, add client HTTP library, add CLI Jan 16, 2023
@marcua marcua merged commit 2847831 into main Jan 16, 2023
@marcua marcua deleted the add-cli branch January 16, 2023 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add CLI for users to manage/query databases

1 participant