caps

package
v0.0.0-...-2de43c5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package caps contains the capabilities of the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capability

type Capability int
const (
	Caching Capability = 1 << iota
	Fmt
	NoHeader
	Wei
	Ether
	File
	Output
	Append
	Verbose
	Version
	Noop
	NoColor
	Chain
	Names
	Default = Verbose | Fmt | Version | Noop | NoColor | Chain | NoHeader | File | Output | Append
)

func (Capability) Add

func (c Capability) Add(cap Capability) Capability

func (Capability) Has

func (c Capability) Has(cap Capability) bool

func (Capability) HasKey

func (c Capability) HasKey(key string) bool

func (Capability) Remove

func (c Capability) Remove(cap Capability) Capability

func (Capability) Show

func (c Capability) Show() string

func (Capability) String

func (c Capability) String() string

func (Capability) Text

func (c Capability) Text() string

Jump to

Keyboard shortcuts

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