feat: add basic error handling

Add anyhow::Result<()> return signature to all scripts and main.
This commit is contained in:
2023-05-21 23:47:02 +02:00
parent 4762c991a3
commit 9f3cc86e3f
5 changed files with 31 additions and 28 deletions

View File

@@ -1,19 +1,20 @@
use anyhow::Result;
use std::path::PathBuf;
pub fn make_command(app: &PathBuf, command: &str) {
pub fn make_command(app: &PathBuf, command: &str) -> Result<()> {
println!("{app:?} and {command:?}");
todo!()
}
pub fn makemigrations() {
pub fn makemigrations() -> Result<()> {
todo!()
}
pub fn manage(command: &[String]) {
pub fn manage(command: &[String]) -> Result<()> {
println!("{command:?}");
todo!()
}
pub fn migrate() {
pub fn migrate() -> Result<()> {
todo!()
}
pub fn shell() {
pub fn shell() -> Result<()> {
todo!()
}