head

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FollowCmd

type FollowCmd struct {
	*base.Base
	Following bool `ask:"<following>" help:"If the head of the chain should automatically be followed"`
}

func (*FollowCmd) Default

func (c *FollowCmd) Default()

func (*FollowCmd) Help

func (c *FollowCmd) Help() string

func (*FollowCmd) Run

func (c *FollowCmd) Run(ctx context.Context, args ...string) error

type GetCmd

type GetCmd struct {
	*base.Base
}

func (*GetCmd) Help

func (c *GetCmd) Help() string

func (*GetCmd) Run

func (c *GetCmd) Run(ctx context.Context, args ...string) error

type HeadCmd

type HeadCmd struct {
	*base.Base
}

func (*HeadCmd) Cmd

func (c *HeadCmd) Cmd(route string) (cmd interface{}, err error)

func (*HeadCmd) Help

func (c *HeadCmd) Help() string

func (*HeadCmd) Routes

func (c *HeadCmd) Routes() []string

type SetCmd

type SetCmd struct {
	*base.Base
	Root beacon.Root `ask:"<root>" help:"The block to make the head. Must exist."`
}

func (*SetCmd) Help

func (c *SetCmd) Help() string

func (*SetCmd) Run

func (c *SetCmd) Run(ctx context.Context, args ...string) error

Jump to

Keyboard shortcuts

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