cmd

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

package provides cobra commands

Index

Constants

This section is empty.

Variables

View Source
var Verbose bool

Functions

func Execute

func Execute(golic string)

Types

type Service

type Service interface {
	Run() error
	String() string
	ExitCode() int
}

type ServiceRunner

type ServiceRunner struct {
	// contains filtered or unexported fields
}

func Command

func Command(service Service) *ServiceRunner

func (*ServiceRunner) MustRun

func (r *ServiceRunner) MustRun() int

Run service once and panics if service is broken

Jump to

Keyboard shortcuts

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