-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ba0145
commit b2d35e0
Showing
5 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
pub mod init; | ||
pub mod build; | ||
pub mod sources; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
use anyhow::Result; | ||
|
||
use crate::api::app::App; | ||
|
||
#[derive(clap::Args)] | ||
pub struct Args { | ||
|
||
} | ||
|
||
pub async fn run(mut app: App, args: Args) -> Result<()> { | ||
Check warning on line 10 in src/commands/sources/list.rs GitHub Actions / clippyvariable does not need to be mutable
Check warning on line 10 in src/commands/sources/list.rs GitHub Actions / clippyunused variable: `args`
|
||
let sources = app.collect_sources().await?; | ||
|
||
println!("{sources:#?}"); | ||
|
||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
use anyhow::Result; | ||
|
||
use crate::api::app::App; | ||
|
||
pub mod list; | ||
|
||
#[derive(clap::Subcommand)] | ||
pub enum Commands { | ||
List(list::Args), | ||
} | ||
|
||
pub async fn run(mut app: App, args: Commands) -> Result<()> { | ||
Check warning on line 12 in src/commands/sources/mod.rs GitHub Actions / clippyvariable does not need to be mutable
|
||
match args { | ||
Commands::List(args) => list::run(app, args).await, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters