feat(init): Add the new/init subcommands (#85)

This commit is contained in:
Gerald Pinder 2024-11-14 20:15:12 -05:00 committed by GitHub
parent e3b246ef91
commit 918da22952
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 765 additions and 152 deletions

View file

@ -1,6 +1,7 @@
use std::path::PathBuf;
use blue_build_utils::{cmd, string_vec};
use log::trace;
use miette::bail;
use super::{opts::GenerateTagsOpts, CiDriver, Driver};
@ -13,13 +14,11 @@ impl CiDriver for LocalDriver {
}
fn keyless_cert_identity() -> miette::Result<String> {
trace!("LocalDriver::keyless_cert_identity()");
bail!("Keyless not supported");
unimplemented!()
}
fn oidc_provider() -> miette::Result<String> {
trace!("LocalDriver::oidc_provider()");
bail!("Keyless not supported");
unimplemented!()
}
fn generate_tags(opts: &GenerateTagsOpts) -> miette::Result<Vec<String>> {
@ -75,6 +74,10 @@ impl CiDriver for LocalDriver {
trace!("LocalDriver::get_registry()");
Ok(String::from("localhost"))
}
fn default_ci_file_path() -> PathBuf {
unimplemented!()
}
}
fn commit_sha() -> Option<String> {