feat: Initial working version of tmux package

This commit is contained in:
2019-12-09 07:56:52 +00:00
commit 6f353d6d16
13 changed files with 471 additions and 0 deletions

27
options_scope_test.go Normal file
View File

@@ -0,0 +1,27 @@
package tmux
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestOptionsScopeFlags(t *testing.T) {
tests := []struct {
scope OptionsScope
flags string
}{
{0, ""},
{Server, "-s"},
{GlobalSession, "-g"},
{Session, ""},
{GlobalWindow, "-gw"},
{Window, "-w"},
{38404, ""},
{934, ""},
}
for _, tt := range tests {
assert.Equal(t, tt.flags, OptionsScopeFlags(tt.scope))
}
}