task

package
v0.9.32 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package task manage task

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTask

func AddTask(taskFile, name string) error

AddTask save task to file.

Types

type Client

type Client interface {
	GetTask() (*Task, error)
	// contains filtered or unexported methods
}

Client task client.

type IClient added in v0.9.31

type IClient struct {
	// contains filtered or unexported fields
}

IClient meets Client interface.

func NewClient

func NewClient(config *config.Config, c screen.Client, taskFile string) *IClient

NewClient initilize Client.

func (*IClient) GetTask added in v0.9.31

func (c *IClient) GetTask() (*Task, error)

GetTask get selected Task.

type Task

type Task struct {
	Name string `yaml:"name"`
}

Task represents task.

type Tasks

type Tasks []*Task

Tasks is array of Task.

Jump to

Keyboard shortcuts

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