annotate cmd.go @ 11:e7d9f63d969c

move repository
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Tue, 31 Mar 2020 19:15:18 +0900
parents 8bc574052fcb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
e4088b031eba add cmd
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 package lectable
e4088b031eba add cmd
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
4
8bc574052fcb def cmd
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 3
diff changeset
3 import (
8bc574052fcb def cmd
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 3
diff changeset
4 "context"
8bc574052fcb def cmd
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 3
diff changeset
5 "io"
8bc574052fcb def cmd
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 3
diff changeset
6 )
3
e4088b031eba add cmd
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7
e4088b031eba add cmd
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 type cmd interface {
e4088b031eba add cmd
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 name() string
e4088b031eba add cmd
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 description() string
4
8bc574052fcb def cmd
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents: 3
diff changeset
11 run(context.Context, []string, io.Writer, io.Writer) error
3
e4088b031eba add cmd
anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 }