mirror of
https://github.com/TECHNOFAB11/bump2version.git
synced 2025-12-12 16:10:07 +01:00
chore: remove lib related stuff
This commit is contained in:
parent
1a7c22bdbf
commit
5d2e86e6f1
5 changed files with 1 additions and 13 deletions
|
|
@ -13,10 +13,6 @@ authors = [
|
||||||
"TECHNOFAB <admin@technofab.de>",
|
"TECHNOFAB <admin@technofab.de>",
|
||||||
]
|
]
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
||||||
[lib]
|
|
||||||
crate-type = ["cdylib"]
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = { version = "4.5.1", features = ["derive"] }
|
clap = { version = "4.5.1", features = ["derive"] }
|
||||||
regex = "1.10.3"
|
regex = "1.10.3"
|
||||||
|
|
|
||||||
0
src/cli.rs
Executable file → Normal file
0
src/cli.rs
Executable file → Normal file
|
|
@ -1,6 +0,0 @@
|
||||||
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
|
||||||
#![doc = include_str!("../README.md")]
|
|
||||||
|
|
||||||
pub(crate) mod cli;
|
|
||||||
pub(crate) mod config;
|
|
||||||
pub(crate) mod utils;
|
|
||||||
|
|
@ -2,8 +2,6 @@ use self::cli::Cli;
|
||||||
use crate::config::Config;
|
use crate::config::Config;
|
||||||
use crate::utils::attempt_version_bump;
|
use crate::utils::attempt_version_bump;
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use config::File;
|
|
||||||
use std::collections::HashMap;
|
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::process::{exit, Command};
|
use std::process::{exit, Command};
|
||||||
use tracing::{error, info, level_filters::LevelFilter, warn};
|
use tracing::{error, info, level_filters::LevelFilter, warn};
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ use std::collections::HashMap;
|
||||||
use std::ops::Index;
|
use std::ops::Index;
|
||||||
use tracing::{error, trace};
|
use tracing::{error, trace};
|
||||||
|
|
||||||
pub fn attempt_version_bump(args: Cli, config: Config) -> Option<String> {
|
pub(crate) fn attempt_version_bump(args: Cli, config: Config) -> Option<String> {
|
||||||
let parse_regex = config.parse;
|
let parse_regex = config.parse;
|
||||||
let regex = match Regex::new(&parse_regex) {
|
let regex = match Regex::new(&parse_regex) {
|
||||||
Ok(r) => r,
|
Ok(r) => r,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue