cmdutil

package module
v0.0.0-...-aae6bad Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: Apache-2.0 Imports: 7 Imported by: 3

README

IPFN command line utilities in Go

IPFN project GoDoc

IPFN command line utilities for Go programming language.

License

                             Apache License
                       Version 2.0, January 2004
                    http://www.apache.org/licenses/

Project

This source code is part of IPFN – interplanetary functions project.

Documentation

Overview

Package cmdutil implements command line utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgDefault

func ArgDefault(args []string, n int, def string) string

ArgDefault - Returns Nth argument or a default.

func PromptConfirmed

func PromptConfirmed(entity string, fn func(string) error) string

PromptConfirmed - Prompts for a value confirmed with function.

func PromptLine

func PromptLine(entity string) (_ string, err error)

PromptLine - Prompts for entire line.

func PromptPassword

func PromptPassword(entity string) string

PromptPassword - Prompts for masked password.

func PromptPasswordRepeated

func PromptPasswordRepeated(entity string) string

PromptPasswordRepeated - Prompts for masked repeated password.

func WrapCommand

func WrapCommand(fn func(cmd *cobra.Command, args []string) error) func(cmd *cobra.Command, args []string)

WrapCommand - Wraps cobra command function with error handler.

Types

This section is empty.

Directories

Path Synopsis
Package logger implements logging helpers.
Package logger implements logging helpers.

Jump to

Keyboard shortcuts

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