style: run cargo fmt
This commit is contained in:
5
build.rs
5
build.rs
@@ -1,12 +1,11 @@
|
||||
use clap::{CommandFactory, ValueEnum};
|
||||
use clap_complete::{generate_to, Shell};
|
||||
use clap_complete::{Shell, generate_to};
|
||||
use std::{env, io::Error};
|
||||
|
||||
include!("src/cli/mod.rs");
|
||||
|
||||
fn main() -> Result<(), Error> {
|
||||
let outdir = env::var_os("SHELL_COMPLETIONS_DIR")
|
||||
.or_else(|| env::var_os("OUT_DIR"));
|
||||
let outdir = env::var_os("SHELL_COMPLETIONS_DIR").or_else(|| env::var_os("OUT_DIR"));
|
||||
|
||||
let Some(outdir) = outdir else {
|
||||
return Ok(());
|
||||
|
||||
@@ -11,7 +11,9 @@ fn main() -> Result<()> {
|
||||
|
||||
match args.command {
|
||||
cli::Commands::Compose { command } => {
|
||||
eprintln!("DEPRECATION NOTICE: this is deprecated in favor of docker compose COMPOSE_FILE env");
|
||||
eprintln!(
|
||||
"DEPRECATION NOTICE: this is deprecated in favor of docker compose COMPOSE_FILE env"
|
||||
);
|
||||
match command {
|
||||
cli::DockerCompose::Bash => scripts::docker_compose::bash(),
|
||||
cli::DockerCompose::Build => scripts::docker_compose::build(),
|
||||
|
||||
@@ -3,7 +3,7 @@ use std::fs::create_dir;
|
||||
use std::io::Write;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use anyhow::{Result, anyhow};
|
||||
|
||||
use crate::command_builder::CommandBuilder;
|
||||
use crate::{create_file, safe_create_file};
|
||||
|
||||
@@ -6,7 +6,7 @@ use std::os::unix::fs::symlink;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::process::Command;
|
||||
|
||||
use anyhow::{anyhow, Context, Result};
|
||||
use anyhow::{Context, Result, anyhow};
|
||||
|
||||
const BACKUP_SUFFIX: &str = ".ahab-bak";
|
||||
const LOCAL_NAMESPACE: &str = "_local";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use anyhow::{anyhow, Result};
|
||||
use anyhow::{Result, anyhow};
|
||||
use std::{
|
||||
fs::File,
|
||||
path::{Path, PathBuf},
|
||||
|
||||
Reference in New Issue
Block a user