Documentation ¶
Index ¶
- func BytesFromPathOrContent(pathOrContent string) ([]byte, error)
- func Confirm(msg string, in In, out io.Writer) (bool, error)
- func ConfirmContinue(target string, in In, out io.Writer, ids ...string) (bool, error)
- func FileOrStdin(path string) (file *os.File, deferFunc func(), err error)
- func FirstNonEmptyString(values ...string) string
- func FlagCompletionFunc(options ...string) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func FlattenErrors(errors []error) error
- func FlattenErrorsWithPrefix(errors []error, pref string) error
- func HasTags(target interface{}, tags []string) bool
- func IsEmpty(object interface{}) bool
- func MarshalJSONFromPathOrContent(pathOrContent string, destination interface{}) error
- func MonitorCondition(start, end string) (*sacloud.MonitorCondition, error)
- func ParseDateTimeString(strDateTime string) time.Time
- func RemoveStringsFromSlice(elements []string, remove []string) []string
- func StringFromPathOrContent(pathOrContent string) (string, error)
- func StringIDs(ids []types.ID) []string
- func UniqIDs(elements []types.ID) []types.ID
- func UniqStrings(elements []string) []string
- func ValidIndex(index, length int) error
- type In
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesFromPathOrContent ¶
func ConfirmContinue ¶
func FirstNonEmptyString ¶
func FlagCompletionFunc ¶
func FlattenErrors ¶
func FlattenErrorsWithPrefix ¶
func IsEmpty ¶
func IsEmpty(object interface{}) bool
IsEmpty is copied from github.com/stretchr/testify/assert/assetions.go
func MonitorCondition ¶
func MonitorCondition(start, end string) (*sacloud.MonitorCondition, error)
func ParseDateTimeString ¶
func RemoveStringsFromSlice ¶
func StringFromPathOrContent ¶
func UniqStrings ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.