From f13250e6a926640c4d0ee858f84fcf8036d612aa Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 22 Nov 2017 14:47:56 -0500 Subject: ahhh --- cmd.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 cmd.go (limited to 'cmd.go') diff --git a/cmd.go b/cmd.go new file mode 100644 index 0000000..7ba40e0 --- /dev/null +++ b/cmd.go @@ -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 +} -- cgit v1.2.3