Format: lib/versions.nix

Changed files
-11
lib
-11
lib/versions.nix
···
/**
Break a version string into its component parts.
-
# Examples
:::{.example}
## `splitVersion` usage example
···
/**
Get the major version string from a string.
-
# Inputs
`v`
: 1\. Function argument
-
# Examples
:::{.example}
···
/**
Get the minor version string from a string.
-
# Inputs
`v`
: 1\. Function argument
-
# Examples
:::{.example}
···
/**
Get the patch version string from a string.
-
# Inputs
···
: 1\. Function argument
-
# Examples
:::{.example}
## `patch` usage example
···
Get string of the first two parts (major and minor)
of a version string.
-
# Inputs
`v`
: 1\. Function argument
-
# Examples
:::{.example}
···
/**
Pad a version string with zeros to match the given number of components.
-
# Inputs
`n`
···
`version`
: 2\. Function argument
-
# Examples
:::{.example}
···
/**
Break a version string into its component parts.
# Examples
:::{.example}
## `splitVersion` usage example
···
/**
Get the major version string from a string.
# Inputs
`v`
: 1\. Function argument
# Examples
:::{.example}
···
/**
Get the minor version string from a string.
# Inputs
`v`
: 1\. Function argument
# Examples
:::{.example}
···
/**
Get the patch version string from a string.
# Inputs
···
: 1\. Function argument
# Examples
:::{.example}
## `patch` usage example
···
Get string of the first two parts (major and minor)
of a version string.
# Inputs
`v`
: 1\. Function argument
# Examples
:::{.example}
···
/**
Pad a version string with zeros to match the given number of components.
# Inputs
`n`
···
`version`
: 2\. Function argument
# Examples
:::{.example}