command

package
v0.0.0-...-468a20b Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommands

func AddCommands(cmd *cobra.Command, c Context)

AddCommands adds all the commands from cli/command to the root command.

func NewAddCommand

func NewAddCommand(c Context) *cobra.Command

NewAddCommand creates a new cobra.Command for adding a new item to the list.

func NewListCommand

func NewListCommand(c Context) *cobra.Command

NewListCommand creates a new cobra.Command for listing todo items.

func NewMarkAsCompleteCommand

func NewMarkAsCompleteCommand(c Context) *cobra.Command

NewMarkAsCompleteCommand creates a new cobra.Command for marking a todo item as complete.

Types

type Context

type Context interface {
	GetTodoClient() todov1.TodoListServiceClient
}

Context represents the application context.

Jump to

Keyboard shortcuts

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