-
Notifications
You must be signed in to change notification settings - Fork 50
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
Showing
4 changed files
with
44 additions
and
11 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
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,35 @@ | ||
use std::path::PathBuf; | ||
|
||
use cli::defaults_place::StudioInfo; | ||
|
||
mod api_dump; | ||
pub mod cli; | ||
mod defaults; | ||
mod patches; | ||
|
||
pub fn defaults_place(api_dump: PathBuf, output: PathBuf) -> anyhow::Result<StudioInfo> { | ||
cli::defaults_place::DefaultsPlaceSubcommand { api_dump, output }.run() | ||
} | ||
|
||
pub fn dump(output: PathBuf) -> anyhow::Result<()> { | ||
cli::dump::DumpSubcommand { output }.run() | ||
} | ||
|
||
pub fn generate( | ||
patches: Option<PathBuf>, | ||
output: Vec<PathBuf>, | ||
no_pretty: bool, | ||
human_readable: bool, | ||
) -> anyhow::Result<()> { | ||
cli::generate::GenerateSubcommand { | ||
patches, | ||
output, | ||
no_pretty, | ||
human_readable, | ||
} | ||
.run() | ||
} | ||
|
||
pub fn values(output: PathBuf) -> anyhow::Result<()> { | ||
cli::values::ValuesSubcommand { output }.run() | ||
} |
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