Skip to content

Commit 8554cc5

Browse files
committed
feat: improve connection command UX with BETA flag, plural aliases, and enhanced output
- Add [BETA] flag to connection command with feedback URL for issue reporting - Add plural aliases: 'connections' and 'projects' for better UX - Enhance connection create/upsert output format: - Show success message with checkmark (✔) - Display connection ID in parentheses after name for consistency - Include source type and URL - Include destination type and type-specific fields (URL for HTTP, Path for CLI) - Remove unnecessary API verification call in connection create for better performance - Update acceptance tests to validate new output format - Clean up verbose logging messages during connection creation
1 parent 21d43d5 commit 8554cc5

File tree

7 files changed

+109
-329
lines changed

7 files changed

+109
-329
lines changed

.plans/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ See [`connection-management-status.md`](./connection-management/connection-manag
2525
- **[`connection-management-status.md`](./connection-management/connection-management-status.md)** - Current implementation status (98% complete)
2626
- **[`resource-management-implementation.md`](./resource-management-implementation.md)** - Overall resource management plan
2727

28-
## Other Resources
29-
30-
- **[`localhost-quickstart.mdoc`](./localhost-quickstart.mdoc)** - Quick start guide for local development
31-
3228
## Development Guidelines
3329

3430
All CLI development follows the patterns documented in [`AGENTS.md`](../AGENTS.md):

.plans/localhost-quickstart.mdoc

Lines changed: 0 additions & 261 deletions
This file was deleted.

pkg/cmd/connection.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,18 @@ func newConnectionCmd() *connectionCmd {
1414
cc := &connectionCmd{}
1515

1616
cc.cmd = &cobra.Command{
17-
Use: "connection",
18-
Args: validators.NoArgs,
19-
Short: "Manage your connections",
17+
Use: "connection",
18+
Aliases: []string{"connections"},
19+
Args: validators.NoArgs,
20+
Short: "Manage your connections [BETA]",
2021
Long: `Manage connections between sources and destinations.
2122
2223
A connection links a source to a destination and defines how webhooks are routed.
2324
You can create connections with inline source and destination creation, or reference
24-
existing resources.`,
25+
existing resources.
26+
27+
[BETA] This feature is in beta. Please share bugs and feedback via:
28+
https://github.com/hookdeck/hookdeck-cli/issues`,
2529
}
2630

2731
cc.cmd.AddCommand(newConnectionCreateCmd().cmd)

0 commit comments

Comments
 (0)