-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default to
twsearch
for the cargo run
and cargo test
.
This is done by specifing a single default package in the top-level `Cargo.toml`: rust-lang/cargo#7290
- Loading branch information
Showing
5 changed files
with
42 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ members = [ | |
"src/cpp", | ||
"src/rs", | ||
] | ||
default-members = [ | ||
"src/rs" | ||
] |
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
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,27 @@ | ||
use std::process::exit; | ||
|
||
use twsearch::_internal::cli::{get_options_cpp_wrapper, CliCommand}; | ||
|
||
fn main() { | ||
let args = get_options_cpp_wrapper(); | ||
|
||
let result: Result<(), String> = match args.command { | ||
CliCommand::Completions(_completions_args) => { | ||
panic!("Completions should have been printed during options parsing, followed by program exit."); | ||
} | ||
CliCommand::Search(_search_command_args) => todo!(), | ||
CliCommand::Serve(_serve_command_args) => { | ||
eprintln!("Skipping `serve` command."); | ||
Ok(()) | ||
} | ||
// TODO: consolidate def-only arg implementations. | ||
CliCommand::SchreierSims(_schreier_sims_command_args) => todo!(), | ||
CliCommand::GodsAlgorithm(_gods_algorithm_args) => todo!(), | ||
CliCommand::TimingTest(_args) => todo!(), | ||
CliCommand::CanonicalAlgs(_args) => todo!(), | ||
}; | ||
if let Err(err) = result { | ||
eprintln!("{}", err); | ||
exit(1); | ||
} | ||
} |