luce

package
v0.0.0-...-157c9c8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Luce

type Luce struct {
	*cli.ExitCloseHandler
	Timeout int
	cli.Helper
	Prompt, StartMessage string
}

func New

func New(ec *cli.ExitClose) *Luce

func (*Luce) Commands

func (l *Luce) Commands() *handler.Commands

func (*Luce) EC

func (l *Luce) EC() *cli.ExitClose

func (*Luce) Handlers

func (l *Luce) Handlers(rnr *cli.Runner) []any

func (*Luce) InitRunner

func (l *Luce) InitRunner(r *cli.Runner)

func (*Luce) RandBase64Handler

func (l *Luce) RandBase64Handler(r *Rand64Req) *Rand64Resp

func (*Luce) RandBase64Usage

func (l *Luce) RandBase64Usage() string

func (*Luce) RandHandler

func (l *Luce) RandHandler(r *RandReq) *RandResp

func (*Luce) RandUsage

func (l *Luce) RandUsage() string

func (*Luce) Runner

func (l *Luce) Runner() *cli.Runner

type Rand64Req

type Rand64Req struct {
	N int
}

type Rand64Resp

type Rand64Resp struct {
	R string
}

type RandReq

type RandReq struct {
	N    int64
	Bits bool `prompt:"Y/n"`
}

type RandResp

type RandResp struct {
	R int64
}

Jump to

Keyboard shortcuts

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