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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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