Skip to content

Commit

Permalink
fmt + update
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats committed Dec 10, 2024
1 parent 0a152fe commit a693d46
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 52 deletions.
83 changes: 41 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/cli/prompt.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::io::{self, BufRead, Write};

use crate::errors::{new_error, ErrorKind, Result};
use crate::cli::terminal;
use crate::errors::{new_error, ErrorKind, Result};
use crate::Value;
use regex::Regex;

Expand Down
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
//! See the [kickstart binary](https://github.com/Keats/kickstart/blob/master/src/bin/kickstart.rs)
//! for an example on how to use it.
#[cfg(feature = "cli")]
pub mod cli;
mod definition;
pub mod errors;
mod filters;
mod generation;
mod utils;
mod value;
#[cfg(feature = "cli")]
pub mod cli;


pub use definition::{Cleanup, Condition, Hook, TemplateDefinition, Variable};
pub use generation::{HookFile, Template};
Expand Down
8 changes: 2 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ use std::process::Command as StdCommand;

use clap::{Parser, Subcommand};

use kickstart::errors::Result;
use kickstart::cli::prompt::{ask_bool, ask_choices, ask_integer, ask_string};
use kickstart::Template;
use kickstart::TemplateDefinition;
use kickstart::{Value, HookFile};
use kickstart::cli::terminal;


use kickstart::errors::Result;
use kickstart::{HookFile, Template, TemplateDefinition, Value};

#[derive(Parser)]
#[clap(version, author, about, subcommand_negates_reqs = true)]
Expand Down

0 comments on commit a693d46

Please sign in to comment.