Skip to content

Commit 0622f44

Browse files
authored
Merge pull request #1709 from entireio/feat/entire-trail-checkout-worktree
Add --worktree to entire trail checkout
2 parents 1b56290 + cc8ab67 commit 0622f44

4 files changed

Lines changed: 1235 additions & 3 deletions

File tree

cmd/entire/cli/trail_checkout_cmd_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,16 @@ func TestTrailCheckoutRejectsArgWithTrailFlag(t *testing.T) {
120120
t.Fatalf("error = %q, want it to mention 'cannot combine'", err)
121121
}
122122
}
123+
124+
func TestTrailCheckoutHasWorktreeFlag(t *testing.T) {
125+
t.Parallel()
126+
127+
cmd := newTrailCheckoutCmd()
128+
flag := cmd.Flags().Lookup("worktree")
129+
if flag == nil {
130+
t.Fatal("worktree flag not registered")
131+
}
132+
if flag.Value.Type() != "bool" {
133+
t.Fatalf("worktree flag type = %q, want bool", flag.Value.Type())
134+
}
135+
}

0 commit comments

Comments
 (0)