number

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

package os contains number related actions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionRange

func ActionRange(opts RangeOpts) carapace.Action

ActionRange completes a number range formatted with given (optional) format specifier

ActionRange(RangeOpts{Format: "%02d", Start: 0, End: 59})

func ActionSemanticVersions

func ActionSemanticVersions(versions ...string) carapace.Action

ActionSemanticVersions completes the next semantic version based on the given existing versions.

v0.20.4 (next patch version)
v0.21.0 (next minor version)

Types

type RangeOpts

type RangeOpts struct {
	Format string
	Start  int
	End    int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL