ux

package
v1.13.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Overview

Copyright (C) 2022, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Lux Industries Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2025, Lux Industries, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2025, Lux Industries, Inc. All rights reserved. See the file LICENSE for licensing terms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToStringWithThousandSeparator

func ConvertToStringWithThousandSeparator(input uint64) string

func ExtraStepExecuted

func ExtraStepExecuted(bar *progressbar.ProgressBar) error

func FormatDuration

func FormatDuration(d time.Duration) string

FormatDuration returns a user friendly string for a duration

func NewUserLog

func NewUserLog(log luxlog.Logger, userwriter io.Writer)

func PrintTableEndpoints

func PrintTableEndpoints(clusterInfo *rpcpb.ClusterInfo)

PrintTableEndpoints prints the endpoints coming from the healthy call

func PrintWait

func PrintWait(cancel chan struct{})

PrintWait does some dot printing to entertain the user

func SpinComplete

func SpinComplete(s *ysmrr.Spinner)

func SpinFailWithError

func SpinFailWithError(s *ysmrr.Spinner, txt string, err error)

func TimedProgressBar

func TimedProgressBar(
	duration time.Duration,
	title string,
	extraSteps int,
) (*progressbar.ProgressBar, error)

Types

type UserLog

type UserLog struct {
	// contains filtered or unexported fields
}
var Logger *UserLog

func (*UserLog) PrintToUser

func (ul *UserLog) PrintToUser(msg string, args ...interface{})

PrintToUser prints msg directly on the screen, but also to log file

type UserSpinner

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

func NewUserSpinner

func NewUserSpinner() *UserSpinner

func (*UserSpinner) SpinToUser

func (us *UserSpinner) SpinToUser(msg string, args ...interface{}) *ysmrr.Spinner

func (*UserSpinner) Stop

func (us *UserSpinner) Stop()

Jump to

Keyboard shortcuts

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