cli

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImportCommandName = "import"

	ImportTypeUnspecified = "unspecified"
	ImportTypeSpace       = "space"
	ImportTypeProposal    = "proposal"
	ImportTypeVote        = "vote"
)
View Source
const (
	FetchCommandName = "fetch"
)
View Source
const FetchProposalCommandName = "fetchproposal"

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 FetchForSpace added in v0.5.1

type FetchForSpace struct {
	Sdk       *snapshot.SDK
	Spaces    *db.SpaceService
	Proposals *db.ProposalService
	Votes     *db.VoteService
	// contains filtered or unexported fields
}

func (*FetchForSpace) Execute added in v0.5.1

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

func (*FetchForSpace) GetArguments added in v0.5.1

func (c *FetchForSpace) GetArguments() ArgumentsDetails

func (*FetchForSpace) GetName added in v0.5.1

func (c *FetchForSpace) GetName() string

func (*FetchForSpace) ParseArgs added in v0.5.1

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

type FetchMessages added in v0.5.1

type FetchMessages struct {
	Messages  *db.MessageService
	Publisher *natsclient.Publisher
	// contains filtered or unexported fields
}

func (*FetchMessages) Execute added in v0.5.1

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

func (*FetchMessages) GetArguments added in v0.5.1

func (c *FetchMessages) GetArguments() ArgumentsDetails

func (*FetchMessages) GetName added in v0.5.1

func (c *FetchMessages) GetName() string

func (*FetchMessages) ParseArgs added in v0.5.1

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

type FetchProposal added in v0.6.4

type FetchProposal struct {
	Sdk       *snapshot.SDK
	Spaces    *db.SpaceService
	Proposals *db.ProposalService
	// contains filtered or unexported fields
}

func (*FetchProposal) Execute added in v0.6.4

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

func (*FetchProposal) GetArguments added in v0.6.4

func (c *FetchProposal) GetArguments() ArgumentsDetails

func (*FetchProposal) GetName added in v0.6.4

func (c *FetchProposal) GetName() string

func (*FetchProposal) ParseArgs added in v0.6.4

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

type FetchType added in v0.5.1

type FetchType string
const (
	FetchMessagesCommandName = "fetch-messages"

	FetchTypeUnspecified    FetchType = "unspecified"
	FetchTypeDeleteProposal FetchType = "delete-proposal"
	FetchUpdateDaoSettings  FetchType = "settings"
)

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