command

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Version() string
	Run() error
}

Command は、サンプルの動作確認のためのインターフェースです.

type ListFileCommand

type ListFileCommand struct {
	Dir     string
	Pattern string
}

ListFileCommand は、指定されたパターンのファイルを出力します.

func (*ListFileCommand) Run

func (c *ListFileCommand) Run() error

Run は、パターンにマッチしたファイル名を出力します.

func (*ListFileCommand) Version

func (c *ListFileCommand) Version() string

Version は、本コマンドのバージョンを返します.

Jump to

Keyboard shortcuts

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