feat: add basic error handling
Add anyhow::Result<()> return signature to all scripts and main.
This commit is contained in:
@@ -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!()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user