cli

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImportCommandName = "import"

	ImportTypeUnspecified = "unspecified"
	ImportTypeSpace       = "space"
	ImportTypeProposal    = "proposal"
	ImportTypeVote        = "vote"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments map[string]*string

func (*Arguments) Get

func (a *Arguments) Get(name string) string

type ArgumentsDetails

type ArgumentsDetails map[string]string

type Command

type Command interface {
	ParseArgs(args ...string) (Arguments, error)
	GetName() string
	Execute(args Arguments) error
	GetArguments() ArgumentsDetails
}

type Import

type Import struct {
	Spaces    *db.SpaceService
	Proposals *db.ProposalService
	Votes     *db.VoteService
	// contains filtered or unexported fields
}

func (*Import) Execute

func (c *Import) Execute(args Arguments) error

func (*Import) GetArguments

func (c *Import) GetArguments() ArgumentsDetails

func (*Import) GetName

func (c *Import) GetName() string

func (*Import) ParseArgs

func (c *Import) ParseArgs(args ...string) (Arguments, error)

type ImportType

type ImportType string

Jump to

Keyboard shortcuts

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