Commit c256dc5
Add
Introduce a new provider abstraction layer in pkg/server that enables
support for multiple cloud providers. This refactor:
- Adds Provider and DNSProvider interfaces for cloud operations
- Implements DigitalOcean provider using the new abstraction
- Adds `trellis server create` command to replace `trellis droplet create`
- Adds `trellis server dns` command to replace `trellis droplet dns`
- Marks existing `droplet` commands as deprecated
- Adds deprecatedCommandHelpFunc to show deprecated commands separately
- Updates default image to Ubuntu 24.04
- Adds server.provider config option in trellis.cli.yml
The provider can be configured via:
1. --provider flag
2. TRELLIS_SERVER_PROVIDER environment variable
3. server.provider in trellis.cli.yml
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>server commands with extensible provider support (#619)1 parent 0511076 commit c256dc5
11 files changed
Lines changed: 1469 additions & 2 deletions
File tree
- cli_config
- cmd
- pkg/server
- digitalocean
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
73 | 78 | | |
74 | 79 | | |
75 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
76 | 85 | | |
77 | 86 | | |
78 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
0 commit comments