Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .surface-breaking
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
ARG basecamp assign 00 <todo_id>
ARG basecamp url 00 [parse]
ARG basecamp url 01 <url>
ARG basecamp unassign 00 <todo_id>
ARG basecamp upload archive 00 <id|url>
ARG basecamp upload doc create 00 <title>
Expand Down
2 changes: 2 additions & 0 deletions e2e/url.bats
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ load test_helper
@test "basecamp url --help shows help" {
run basecamp url --help
assert_success
assert_output_contains "<url>"
assert_output_not_contains "[parse]"
assert_output_contains "parse"
}

Expand Down
2 changes: 1 addition & 1 deletion internal/commands/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type ParsedURL struct {
// NewURLCmd creates the url command for parsing Basecamp URLs.
func NewURLCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "url [parse] <url>",
Use: "url <url>",
Short: "Parse Basecamp URLs",
Long: `Parse and work with Basecamp URLs.

Expand Down
2 changes: 1 addition & 1 deletion internal/commands/url_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ func TestURLParseBreadcrumbsForStep(t *testing.T) {
func TestURLCmdCreation(t *testing.T) {
cmd := NewURLCmd()
require.NotNil(t, cmd, "NewURLCmd returned nil")
assert.Equal(t, "url [parse] <url>", cmd.Use)
assert.Equal(t, "url <url>", cmd.Use)
assert.NotEmpty(t, cmd.Short, "command should have short description")

// Should have parse subcommand
Expand Down
Loading