mod config;
mod global;
mod solar_error;
mod subcommand;
pub mod tool;
pub use config::Config;
pub use global::{Global, SOLARCONFIGNAME};
pub use solar_error::SolarError;
pub use subcommand::{
Subcommand,
init::{Init, solar_init},
install::Install,
new::{New, solar_new},
update::{Update, solar_update},
upgrade::Upgrade,
};
pub use tool::{
Action, CargoDeny, Commitalyzer, GithubWorkflows, LICENSES_DIR, Licenses, PreCommit,
SemverRelease, Tool, ToolTrait, Vhooks,
};
pub fn sorted<C, U>(mut collection: C) -> C
where
C: AsMut<[U]>,
U: Ord,
{
collection.as_mut().sort();
collection
}