cmdsort

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(appInfo *appinfo.AppInfo) *cobra.Command

New returns the newly created object pointer of the "list" command.

Types

type Command

type Command struct {
	*cobra.Command
	AppInfo *appinfo.AppInfo
	CUI     *cui.UI
	// contains filtered or unexported fields
}

Command is the struct to hold cobra.Command and it's flag options.

func (*Command) GetTaks

func (c *Command) GetTaks() (*todo.Todo, error)

GetTaks は現在のタスク一覧のを返します。完了済のタスクはソートされた状態で返されます。

func (*Command) Sort

func (c *Command) Sort(cmd *cobra.Command, args []string) error

Sort は cmdsort の本体です。タスクを対話式でソートします。

func (*Command) SurvayQueryType

func (c *Command) SurvayQueryType() error

SurvayQueryType はユーザに質問集のタイプ(タスク整理向け、コレクション整理向 けなど)を問い合わせ、アプリの設定ファイルの queries フィールドにセットします。

このメソッドは保存は行いません。呼び出し側で必要にあわせて保存処理を別途実行 する必要があります。

func (*Command) SurvaySave

func (c *Command) SurvaySave() error

SurvaySave は質問集が存在しない場合、ユーザに問い合わせて設定ファイルを新規保存します。

Jump to

Keyboard shortcuts

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