summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorfilip <filipbachul@gmail.com>2021-04-29 23:22:20 +0200
committerGitHub <noreply@github.com>2021-04-29 23:22:20 +0200
commit540c2c2475571f93a7ecaf813a7832f31cc6d8be (patch)
treeec96a4a86f992d3d4c53b0471ba1121c1afb92fb /src
parentc2e84e1802931197acb3eba957b78134e33cc7e8 (diff)
feat: Add version formating for modules (#2611)
* format crystal version with VersionFormatter * update crystal dosc * format crystal module * fix typos * format dart version with VersionFormatter * fix dart malformed test * update dart docs * format cmake version with VersionFormatter * update cmake docs * format deno version with VersionFormatter * update deno docs * remove Version type * format dotnet version with VersionFormatter * update dotnet docs * format erlang version with VersionFormatter * update erlang docs * format golang version with VersionFormatter * refactor formatting in my modules * format helm version with VersionFormatter * format julia version with VersionFormatter * format kotlin version with VersionFormatter * format lua version with VersionFormatter * format nim version with VersionFormatter * format perl version with VersionFormatter * format php version with VersionFormatter * format purescript version with VersionFormatter * format scala version with VersionFormatter * format swift version with VersionFormatter * format terraform version with VersionFormatter * format vagrant version with VersionFormatter * format zig version with VersionFormatter * format elixir version with VersionFormatter * format ocaml version with VersionFormatter * update elixir docs * update golang docs * update helm docs * update julia docs * update kotlin docs * update lua docs * update nim docs * update ocaml docs * update perl docs * update php docs * update purescript docs * update scala docs * update swift docs * update terraform docs * update vagrant docs * update zig docs * format elm version with VersionFormatter * update elm docs * pass module_name as &str to format_module_version
Diffstat (limited to 'src')
-rw-r--r--src/configs/cmake.rs2
-rw-r--r--src/configs/crystal.rs2
-rw-r--r--src/configs/dart.rs2
-rw-r--r--src/configs/deno.rs2
-rw-r--r--src/configs/dotnet.rs2
-rw-r--r--src/configs/elixir.rs2
-rw-r--r--src/configs/elm.rs2
-rw-r--r--src/configs/erlang.rs2
-rw-r--r--src/configs/go.rs2
-rw-r--r--src/configs/helm.rs2
-rw-r--r--src/configs/julia.rs2
-rw-r--r--src/configs/kotlin.rs2
-rw-r--r--src/configs/lua.rs2
-rw-r--r--src/configs/nim.rs2
-rw-r--r--src/configs/ocaml.rs6
-rw-r--r--src/configs/perl.rs6
-rw-r--r--src/configs/php.rs6
-rw-r--r--src/configs/purescript.rs2
-rw-r--r--src/configs/scala.rs4
-rw-r--r--src/configs/swift.rs2
-rw-r--r--src/configs/terraform.rs2
-rw-r--r--src/configs/vagrant.rs2
-rw-r--r--src/configs/zig.rs2
-rw-r--r--src/formatter/version.rs14
-rw-r--r--src/modules/cmake.rs28
-rw-r--r--src/modules/crystal.rs33
-rw-r--r--src/modules/dart.rs35
-rw-r--r--src/modules/deno.rs42
-rw-r--r--src/modules/dotnet.rs42
-rw-r--r--src/modules/elixir.rs12
-rw-r--r--src/modules/elm.rs9
-rw-r--r--src/modules/erlang.rs13
-rw-r--r--src/modules/golang.rs18
-rw-r--r--src/modules/helm.rs54
-rw-r--r--src/modules/java.rs2
-rw-r--r--src/modules/julia.rs23
-rw-r--r--src/modules/kotlin.rs39
-rw-r--r--src/modules/lua.rs17
-rw-r--r--src/modules/nim.rs8
-rw-r--r--src/modules/nodejs.rs2
-rw-r--r--src/modules/ocaml.rs8
-rw-r--r--src/modules/perl.rs8
-rw-r--r--src/modules/php.rs18
-rw-r--r--src/modules/purescript.rs8
-rw-r--r--src/modules/python.rs2
-rw-r--r--src/modules/ruby.rs2
-rw-r--r--src/modules/rust.rs2
-rw-r--r--src/modules/scala.rs14
-rw-r--r--src/modules/swift.rs17
-rw-r--r--src/modules/terraform.rs43
-rw-r--r--src/modules/vagrant.rs24
-rw-r--r--src/modules/zig.rs11
52 files changed, 386 insertions, 222 deletions
diff --git a/src/configs/cmake.rs b/src/configs/cmake.rs
index d225b0d90..8ba2c6a94 100644
--- a/src/configs/cmake.rs
+++ b/src/configs/cmake.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct CMakeConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -18,6 +19,7 @@ impl<'a> Default for CMakeConfig<'a> {
fn default() -> Self {
CMakeConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "△ ",
style: "bold blue",
disabled: false,
diff --git a/src/configs/crystal.rs b/src/configs/crystal.rs
index e5b61476e..ec90b773e 100644
--- a/src/configs/crystal.rs
+++ b/src/configs/crystal.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct CrystalConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -18,6 +19,7 @@ impl<'a> Default for CrystalConfig<'a> {
fn default() -> Self {
CrystalConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "🔮 ",
style: "bold red",
disabled: false,
diff --git a/src/configs/dart.rs b/src/configs/dart.rs
index 94f5112e4..8edb214bd 100644
--- a/src/configs/dart.rs
+++ b/src/configs/dart.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct DartConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -18,6 +19,7 @@ impl<'a> Default for DartConfig<'a> {
fn default() -> Self {
DartConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "🎯 ",
style: "bold blue",
disabled: false,
diff --git a/src/configs/deno.rs b/src/configs/deno.rs
index 398178430..cb4cddc55 100644
--- a/src/configs/deno.rs
+++ b/src/configs/deno.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct DenoConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -18,6 +19,7 @@ impl<'a> Default for DenoConfig<'a> {
fn default() -> Self {
DenoConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "🦕 ",
style: "green bold",
disabled: false,
diff --git a/src/configs/dotnet.rs b/src/configs/dotnet.rs
index 05438f363..78c6d8de9 100644
--- a/src/configs/dotnet.rs
+++ b/src/configs/dotnet.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct DotnetConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub heuristic: bool,
@@ -19,6 +20,7 @@ impl<'a> Default for DotnetConfig<'a> {
fn default() -> Self {
DotnetConfig {
format: "[$symbol($version )(🎯 $tfm )]($style)",
+ version_format: "v${raw}",
symbol: ".NET ",
style: "blue bold",
heuristic: true,
diff --git a/src/configs/elixir.rs b/src/configs/elixir.rs
index 9eb5b347c..d4ed7161e 100644
--- a/src/configs/elixir.rs
+++ b/src/configs/elixir.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct ElixirConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -18,6 +19,7 @@ impl<'a> Default for ElixirConfig<'a> {
fn default() -> Self {
ElixirConfig {
format: "via [$symbol($version \\(OTP $otp_version\\) )]($style)",
+ version_format: "v${raw}",
symbol: "💧 ",
style: "bold purple",
disabled: false,
diff --git a/src/configs/elm.rs b/src/configs/elm.rs
index d97cddd9c..34d6b6260 100644
--- a/src/configs/elm.rs
+++ b/src/configs/elm.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct ElmConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -18,6 +19,7 @@ impl<'a> Default for ElmConfig<'a> {
fn default() -> Self {
ElmConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "🌳 ",
style: "cyan bold",
disabled: false,
diff --git a/src/configs/erlang.rs b/src/configs/erlang.rs
index b0a7515ef..8ab6f0764 100644
--- a/src/configs/erlang.rs
+++ b/src/configs/erlang.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct ErlangConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -18,6 +19,7 @@ impl<'a> Default for ErlangConfig<'a> {
fn default() -> Self {
ErlangConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: " ",
style: "bold red",
disabled: false,
diff --git a/src/configs/go.rs b/src/configs/go.rs
index c4fb3dca5..0e9f2effb 100644
--- a/src/configs/go.rs
+++ b/src/configs/go.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct GoConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -18,6 +19,7 @@ impl<'a> Default for GoConfig<'a> {
fn default() -> Self {
GoConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "🐹 ",
style: "bold cyan",
disabled: false,
diff --git a/src/configs/helm.rs b/src/configs/helm.rs
index a99ad7aba..91c38efab 100644
--- a/src/configs/helm.rs
+++ b/src/configs/helm.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct HelmConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -18,6 +19,7 @@ impl<'a> Default for HelmConfig<'a> {
fn default() -> Self {
HelmConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "⎈ ",
style: "bold white",
disabled: false,
diff --git a/src/configs/julia.rs b/src/configs/julia.rs
index 0ee98614d..785d229dd 100644
--- a/src/configs/julia.rs
+++ b/src/configs/julia.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct JuliaConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -18,6 +19,7 @@ impl<'a> Default for JuliaConfig<'a> {
fn default() -> Self {
JuliaConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "ஃ ",
style: "bold purple",
disabled: false,
diff --git a/src/configs/kotlin.rs b/src/configs/kotlin.rs
index b609c033b..35bbafa50 100644
--- a/src/configs/kotlin.rs
+++ b/src/configs/kotlin.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct KotlinConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub kotlin_binary: &'a str,
@@ -19,6 +20,7 @@ impl<'a> Default for KotlinConfig<'a> {
fn default() -> Self {
KotlinConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "🅺 ",
style: "bold blue",
kotlin_binary: "kotlin",
diff --git a/src/configs/lua.rs b/src/configs/lua.rs
index a70e30183..2b8e0898c 100644
--- a/src/configs/lua.rs
+++ b/src/configs/lua.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct LuaConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub lua_binary: &'a str,
@@ -19,6 +20,7 @@ impl<'a> Default for LuaConfig<'a> {
fn default() -> Self {
LuaConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "🌙 ",
style: "bold blue",
lua_binary: "lua",
diff --git a/src/configs/nim.rs b/src/configs/nim.rs
index bbbe90a65..936045f5c 100644
--- a/src/configs/nim.rs
+++ b/src/configs/nim.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct NimConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -18,6 +19,7 @@ impl<'a> Default for NimConfig<'a> {
fn default() -> Self {
NimConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "👑 ",
style: "yellow bold",
disabled: false,
diff --git a/src/configs/ocaml.rs b/src/configs/ocaml.rs
index fe149837f..4675b59bc 100644
--- a/src/configs/ocaml.rs
+++ b/src/configs/ocaml.rs
@@ -5,9 +5,10 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct OCamlConfig<'a> {
+ pub format: &'a str,
+ pub version_format: &'a str,
pub global_switch_indicator: &'a str,
pub local_switch_indicator: &'a str,
- pub format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -19,9 +20,10 @@ pub struct OCamlConfig<'a> {
impl<'a> Default for OCamlConfig<'a> {
fn default() -> Self {
OCamlConfig {
+ format: "via [$symbol($version )(\\($switch_indicator$switch_name\\) )]($style)",
+ version_format: "v${raw}",
global_switch_indicator: "",
local_switch_indicator: "*",
- format: "via [$symbol($version )(\\($switch_indicator$switch_name\\) )]($style)",
symbol: "🐫 ",
style: "bold yellow",
disabled: false,
diff --git a/src/configs/perl.rs b/src/configs/perl.rs
index 9aaf1ce4a..ca7aed454 100644
--- a/src/configs/perl.rs
+++ b/src/configs/perl.rs
@@ -5,9 +5,10 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct PerlConfig<'a> {
+ pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
- pub format: &'a str,
pub disabled: bool,
pub detect_extensions: Vec<&'a str>,
pub detect_files: Vec<&'a str>,
@@ -17,9 +18,10 @@ pub struct PerlConfig<'a> {
impl<'a> Default for PerlConfig<'a> {
fn default() -> Self {
PerlConfig {
+ format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "🐪 ",
style: "149 bold",
- format: "via [$symbol($version )]($style)",
disabled: false,
detect_extensions: vec!["pl", "pm", "pod"],
detect_files: vec![
diff --git a/src/configs/php.rs b/src/configs/php.rs
index 2c44141d9..bb2b8d7c3 100644
--- a/src/configs/php.rs
+++ b/src/configs/php.rs
@@ -5,9 +5,10 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct PhpConfig<'a> {
+ pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
- pub format: &'a str,
pub disabled: bool,
pub detect_extensions: Vec<&'a str>,
pub detect_files: Vec<&'a str>,
@@ -17,9 +18,10 @@ pub struct PhpConfig<'a> {
impl<'a> Default for PhpConfig<'a> {
fn default() -> Self {
PhpConfig {
+ format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "🐘 ",
style: "147 bold",
- format: "via [$symbol($version )]($style)",
disabled: false,
detect_extensions: vec!["php"],
detect_files: vec!["composer.json", ".php-version"],
diff --git a/src/configs/purescript.rs b/src/configs/purescript.rs
index a52dff799..3d1625794 100644
--- a/src/configs/purescript.rs
+++ b/src/configs/purescript.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct PureScriptConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -18,6 +19,7 @@ impl<'a> Default for PureScriptConfig<'a> {
fn default() -> Self {
PureScriptConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "<=> ",
style: "bold white",
disabled: false,
diff --git a/src/configs/scala.rs b/src/configs/scala.rs
index 1be54487f..90adad15e 100644
--- a/src/configs/scala.rs
+++ b/src/configs/scala.rs
@@ -5,8 +5,9 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct ScalaConfig<'a> {
- pub disabled: bool,
pub format: &'a str,
+ pub version_format: &'a str,
+ pub disabled: bool,
pub style: &'a str,
pub symbol: &'a str,
pub detect_extensions: Vec<&'a str>,
@@ -18,6 +19,7 @@ impl<'a> Default for ScalaConfig<'a> {
fn default() -> Self {
ScalaConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
disabled: false,
style: "red bold",
symbol: "🆂 ",
diff --git a/src/configs/swift.rs b/src/configs/swift.rs
index 4e569494d..c63b1ae67 100644
--- a/src/configs/swift.rs
+++ b/src/configs/swift.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct SwiftConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -18,6 +19,7 @@ impl<'a> Default for SwiftConfig<'a> {
fn default() -> Self {
SwiftConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "🐦 ",
style: "bold 202",
disabled: false,
diff --git a/src/configs/terraform.rs b/src/configs/terraform.rs
index 2b56fba94..2f68ccb32 100644
--- a/src/configs/terraform.rs
+++ b/src/configs/terraform.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct TerraformConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -18,6 +19,7 @@ impl<'a> Default for TerraformConfig<'a> {
fn default() -> Self {
TerraformConfig {
format: "via [$symbol$workspace]($style) ",
+ version_format: "v${raw}",
symbol: "💠 ",
style: "bold 105",
disabled: false,
diff --git a/src/configs/vagrant.rs b/src/configs/vagrant.rs
index 60460941f..cc7df44b1 100644
--- a/src/configs/vagrant.rs
+++ b/src/configs/vagrant.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct VagrantConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -18,6 +19,7 @@ impl<'a> Default for VagrantConfig<'a> {
fn default() -> Self {
VagrantConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "⍱ ",
style: "cyan bold",
disabled: false,
diff --git a/src/configs/zig.rs b/src/configs/zig.rs
index ff47889e0..c26ae5b74 100644
--- a/src/configs/zig.rs
+++ b/src/configs/zig.rs
@@ -6,6 +6,7 @@ use starship_module_config_derive::ModuleConfig;
#[derive(Clone, ModuleConfig, Serialize)]
pub struct ZigConfig<'a> {
pub format: &'a str,
+ pub version_format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub disabled: bool,
@@ -18,6 +19,7 @@ impl<'a> Default for ZigConfig<'a> {
fn default() -> Self {
ZigConfig {
format: "via [$symbol($version )]($style)",
+ version_format: "v${raw}",
symbol: "↯ ",
style: "bold yellow",
disabled: false,
diff --git a/src/formatter/version.rs b/src/formatter/version.rs
index 2b3e8aed1..808fa15ff 100644
--- a/src/formatter/version.rs
+++ b/src/formatter/version.rs
@@ -60,6 +60,20 @@ impl<'a> VersionFormatter<'a> {
.collect::<String>()
})
}
+
+ pub fn format_module_version(
+ module_name: &str,
+ version: &str,
+ version_format: &str,
+ ) -> Option<String> {
+ match VersionFormatter::format_version(version, version_format) {
+ Ok(formatted) => Some(formatted),
+ Err(error) => {
+ log::warn!("Error formatting `{}` version:\n{}", module_name, error);
+ Some(format!("v{}", version))
+ }
+ }
+ }
}
#[cfg(test)]
diff --git a/src/modules/cmake.rs b/src/modules/cmake.rs
index 01d4010e9..5ddcb0529 100644
--- a/src/modules/cmake.rs
+++ b/src/modules/cmake.rs
@@ -1,4 +1,5 @@
use super::{Context, Module, RootModuleConfig};
+use crate::formatter::VersionFormatter;
use crate::configs::cmake::CMakeConfig;
use crate::formatter::StringFormatter;
@@ -30,11 +31,16 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
_ => None,