diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-31 15:18:09 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-31 16:44:23 +0200 |
commit | eb39c5c29bc0e9b5e15a940a1b71bdac688b6535 (patch) | |
tree | 5ef9b827f4a3097e4eb1367097d0059f895befbe /bug | |
parent | 8a4e373e7b1c093abeb967d9a6a43c5ed533edb8 (diff) | |
download | git-bug-eb39c5c29bc0e9b5e15a940a1b71bdac688b6535.tar.gz |
cli: rework new and comment command to better use the editor
a nice templace is now provided with explanations
new: title and message can now be provided from the editor. Title will
be the first non-empty line
Diffstat (limited to 'bug')
-rw-r--r-- | bug/operation.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bug/operation.go b/bug/operation.go index 9e31637a..74be2fac 100644 --- a/bug/operation.go +++ b/bug/operation.go @@ -17,6 +17,9 @@ type Operation interface { OpType() OperationType Time() time.Time Apply(snapshot Snapshot) Snapshot + + // TODO: data validation (ex: a title is a single line) + // Validate() bool } type OpBase struct { |