Module nimbus_cli::version_utils

source ·

Functions§

  • is_before 🔒
  • is_between 🔒
  • pad_major 🔒
    pad_major will keep the string as it is. If the minor and/or patch versions are present, then they are left intact. 112.1.3 –> 112.1.3 112.1 –> 112.1 112 –> 112
  • pad_major_minor will zero pad the minor version if it is not present. If the patch version is present, then it is left intact. 112.1.3 –> 112.1.3 112.1 –> 112.1 112 –> 112.0
  • The following are dumb string manipulations to pad out a version number. We might use a version library if we need much more functionality, but right now it’s isolated in a single file where it can be replaced as/when necessary. pad_major_minor_patch will zero pad the minor and patch versions if they are not present. 112.1.3 –> 112.1.3 112.1 –> 112.1.0 112 –> 112.0.0