mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
Format: lib/versions.nix
This commit is contained in:
parent
e0fe216f49
commit
d89ad6c70e
1 changed files with 0 additions and 11 deletions
|
@ -6,7 +6,6 @@ rec {
|
||||||
/**
|
/**
|
||||||
Break a version string into its component parts.
|
Break a version string into its component parts.
|
||||||
|
|
||||||
|
|
||||||
# Examples
|
# Examples
|
||||||
:::{.example}
|
:::{.example}
|
||||||
## `splitVersion` usage example
|
## `splitVersion` usage example
|
||||||
|
@ -23,14 +22,12 @@ rec {
|
||||||
/**
|
/**
|
||||||
Get the major version string from a string.
|
Get the major version string from a string.
|
||||||
|
|
||||||
|
|
||||||
# Inputs
|
# Inputs
|
||||||
|
|
||||||
`v`
|
`v`
|
||||||
|
|
||||||
: 1\. Function argument
|
: 1\. Function argument
|
||||||
|
|
||||||
|
|
||||||
# Examples
|
# Examples
|
||||||
:::{.example}
|
:::{.example}
|
||||||
## `major` usage example
|
## `major` usage example
|
||||||
|
@ -47,14 +44,12 @@ rec {
|
||||||
/**
|
/**
|
||||||
Get the minor version string from a string.
|
Get the minor version string from a string.
|
||||||
|
|
||||||
|
|
||||||
# Inputs
|
# Inputs
|
||||||
|
|
||||||
`v`
|
`v`
|
||||||
|
|
||||||
: 1\. Function argument
|
: 1\. Function argument
|
||||||
|
|
||||||
|
|
||||||
# Examples
|
# Examples
|
||||||
:::{.example}
|
:::{.example}
|
||||||
## `minor` usage example
|
## `minor` usage example
|
||||||
|
@ -71,14 +66,12 @@ rec {
|
||||||
/**
|
/**
|
||||||
Get the patch version string from a string.
|
Get the patch version string from a string.
|
||||||
|
|
||||||
|
|
||||||
# Inputs
|
# Inputs
|
||||||
|
|
||||||
`v`
|
`v`
|
||||||
|
|
||||||
: 1\. Function argument
|
: 1\. Function argument
|
||||||
|
|
||||||
|
|
||||||
# Examples
|
# Examples
|
||||||
:::{.example}
|
:::{.example}
|
||||||
## `patch` usage example
|
## `patch` usage example
|
||||||
|
@ -96,14 +89,12 @@ rec {
|
||||||
Get string of the first two parts (major and minor)
|
Get string of the first two parts (major and minor)
|
||||||
of a version string.
|
of a version string.
|
||||||
|
|
||||||
|
|
||||||
# Inputs
|
# Inputs
|
||||||
|
|
||||||
`v`
|
`v`
|
||||||
|
|
||||||
: 1\. Function argument
|
: 1\. Function argument
|
||||||
|
|
||||||
|
|
||||||
# Examples
|
# Examples
|
||||||
:::{.example}
|
:::{.example}
|
||||||
## `majorMinor` usage example
|
## `majorMinor` usage example
|
||||||
|
@ -120,7 +111,6 @@ rec {
|
||||||
/**
|
/**
|
||||||
Pad a version string with zeros to match the given number of components.
|
Pad a version string with zeros to match the given number of components.
|
||||||
|
|
||||||
|
|
||||||
# Inputs
|
# Inputs
|
||||||
|
|
||||||
`n`
|
`n`
|
||||||
|
@ -131,7 +121,6 @@ rec {
|
||||||
|
|
||||||
: 2\. Function argument
|
: 2\. Function argument
|
||||||
|
|
||||||
|
|
||||||
# Examples
|
# Examples
|
||||||
:::{.example}
|
:::{.example}
|
||||||
## `pad` usage example
|
## `pad` usage example
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue