cmd

package
v0.0.0-...-4b58b44 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Copyright © 2022 Alper Kilci <alperkilci@gmail.com>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandImpl

type CommandImpl interface {
	Init(cmd *cobra.Command, args []string)
	ListAllTodos(cmd *cobra.Command, args []string)
	NewTodo(cmd *cobra.Command, args []string)
	GetTodo(cmd *cobra.Command, args []string)
	UpdateTodo(cmd *cobra.Command, args []string)
	AddTask(cmd *cobra.Command, args []string)
	RemoveTask(cmd *cobra.Command, args []string)
	DeleteTodo(cmd *cobra.Command, args []string)
}

func NewCommandImpl

func NewCommandImpl(db db.Database) CommandImpl

type Commander

type Commander interface {
	Execute()
	RegisterCommands()
}

func NewCommander

func NewCommander(database db.Database) Commander

Jump to

Keyboard shortcuts

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