Skip to content

Commit

Permalink
Merge pull request #116 from cgwalters/monomorphize-cli
Browse files Browse the repository at this point in the history
lib: Dispatch to monomorphic function
  • Loading branch information
jmarrero committed Aug 17, 2023
2 parents 1afe8d2 + 392828e commit 512dedd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,11 @@ where
I: IntoIterator,
I::Item: Into<OsString> + Clone,
{
let opt = Opt::parse_from(args);
run_from_opt(Opt::parse_from(args)).await
}

/// Internal (non-generic/monomorphized) primary CLI entrypoint
async fn run_from_opt(opt: Opt) -> Result<()> {
match opt {
Opt::Upgrade(opts) => upgrade(opts).await,
Opt::Switch(opts) => switch(opts).await,
Expand Down

0 comments on commit 512dedd

Please sign in to comment.