cli

package
v7.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagUser     = "user"
	FlagPostID   = "post-id"
	FlagReporter = "reporter"
	FlagMessage  = "message"
)

Variables

This section is empty.

Functions

func GetCmdAddReason

func GetCmdAddReason() *cobra.Command

GetCmdAddReason returns the command allowing to add a new reporting reason

func GetCmdCreateReport

func GetCmdCreateReport() *cobra.Command

GetCmdCreateReport returns the command allowing to create a report

func GetCmdDeleteReport

func GetCmdDeleteReport() *cobra.Command

GetCmdDeleteReport returns the command allowing to delete a report

func GetCmdQueryParams

func GetCmdQueryParams() *cobra.Command

GetCmdQueryParams returns the command to query the params of the module

func GetCmdQueryReason

func GetCmdQueryReason() *cobra.Command

GetCmdQueryReason returns the command to query a reason of a subspace

func GetCmdQueryReasons

func GetCmdQueryReasons() *cobra.Command

GetCmdQueryReasons returns the command to query the reasons of a subspace

func GetCmdQueryReport

func GetCmdQueryReport() *cobra.Command

GetCmdQueryReport returns the command to query a report of a subspace

func GetCmdQueryReports

func GetCmdQueryReports() *cobra.Command

GetCmdQueryReports returns the command to query the reports of a subspace

func GetCmdRemoveReason

func GetCmdRemoveReason() *cobra.Command

GetCmdRemoveReason returns the command allowing to remove a reporting reason

func GetCmdSupportStandardReason

func GetCmdSupportStandardReason() *cobra.Command

GetCmdSupportStandardReason returns the command allowing to support a standard reason

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the command allowing to perform queries

func NewReasonsTxCmd

func NewReasonsTxCmd() *cobra.Command

NewReasonsTxCmd returns a new command to perform reasons transactions

func NewTxCmd

func NewTxCmd() *cobra.Command

NewTxCmd returns a new command to perform reports transactions

func ReadReportTarget

func ReadReportTarget(flagSet *pflag.FlagSet) (types.ReportTarget, error)

ReadReportTarget reads the given flags and returns the report target

Types

This section is empty.

Jump to

Keyboard shortcuts

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