urfave-cli/fish_test.go
Sascha Grunert 7506b11da7
Add fish shell completion support
This commit adds a new method `ToFishCompletion` to the `*App` which can
be used to generate a fish completion string for the application.

Relates to: #351

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-08-09 08:58:06 +02:00

18 lines
246 B
Go

package cli
import (
"testing"
)
func TestFishCompletion(t *testing.T) {
// Given
app := testApp()
// When
res, err := app.ToFishCompletion()
// Then
expect(t, err, nil)
expectFileContent(t, "testdata/expected-fish-full.fish", res)
}