This commit is contained in:
Olivier 2017-01-10 10:27:54 -05:00
parent 0cc82e4f87
commit 762c54cd0d
No known key found for this signature in database
GPG key ID: 1A9FE7C1DFF65CB0
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,5 @@
package main
type Runner interface {
Run() error
}

28
cmd/jkl/editcomment.go Normal file
View file

@ -0,0 +1,28 @@
package main
import (
"errors"
"flag"
)
type EditCommentCmd struct {
args []string
file string
issueKey string
}
func NewEditCommentCmd(args []string) (*EditCommentCmd, error) {
ccmd := &EditCommentCmd{}
f := flag.NewFlagSet("comments", flag.ExitOnError)
f.StringVar(&ccmd.file, "f", "", "File to get issue comment from")
f.Parse(args)
if len(f.Args()) < 1 {
return nil, ErrNotEnoughArgs
}
ccmd.issueKey = f.Arg(0)
return ccmd, nil
}
func (e *EditCommentCmd) Run() error {
return errors.New("Not implemented")
}