command

package
v0.0.0-...-7a8de23 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package command implements console commands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(vs []string, f func(string) bool) []string

Filter an array of strings given a predicate function

func RootCommand

func RootCommand() *commander.Command

RootCommand creates root command in command tree

func SameOrHigher

func SameOrHigher(referenceVersion string) func(string) bool

SameOrHigher creates a predicate function testing versions to a reference version

Types

type ByVersion

type ByVersion []string

ByVersion allows to compare the package version using the Debian versioning policy

func (ByVersion) Len

func (s ByVersion) Len() int

func (ByVersion) Less

func (s ByVersion) Less(i, j int) bool

func (ByVersion) Swap

func (s ByVersion) Swap(i, j int)

Jump to

Keyboard shortcuts

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