diff options
Diffstat (limited to 'cmd.go')
-rw-r--r-- | cmd.go | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +package libfastimport + +import ( + "git.lukeshu.com/go/libfastimport/textproto" +) + +type cmdClass int + +const ( + cmdClassCommand cmdClass = 1 // may be a top-level command + cmdClassCommit cmdClass = 2 // may be used within in a commit + + cmdClassComment cmdClass = cmdClassCommand | cmdClassCommit +) + +type Cmd interface { + fiCmdWrite(*textproto.FIWriter) error + fiCmdClass() cmdClass +} |