Skip to content

Commit 19e24d1

Browse files
committed
feat(cli): add migrate-customizations command with PR creation
Signed-off-by: Greg Allen <gallen@redhat.com> Signed-off-by: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Greg Allen <gallen@redhat.com>
1 parent d7a3a60 commit 19e24d1

10 files changed

Lines changed: 2201 additions & 2 deletions

File tree

docs/guides/dev/cli-internals.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ fullsend
1212
│ ├── analyze <org> # Health check installed state
1313
│ ├── enable
1414
│ │ └── repos <org> [repo...] # Enable agent on repos
15-
│ └── disable
16-
│ └── repos <org> [repo...] # Disable agent on repos
15+
│ ├── disable
16+
│ │ └── repos <org> [repo...] # Disable agent on repos
17+
│ └── migrate-customizations # Migrate customized/ → config agents
18+
│ ├── --fullsend-dir <dir> # Base directory with .fullsend layout
19+
│ ├── --repo <owner/repo> # Target repo for migration PR
20+
│ └── --dry-run # Preview changes without PR
1721
├── mint # Token mint management
1822
│ ├── deploy # Deploy/update mint Cloud Function
1923
│ ├── add-role <role> # Register role PEM + ROLE_APP_IDS entry
@@ -549,6 +553,7 @@ var executableFiles = map[string]struct{}{
549553
|------|-------|---------|
550554
| `internal/cli/root.go` | ~34 | CLI entry point, command registration |
551555
| `internal/cli/admin.go` | ~2415 | Install/uninstall/analyze/enable/disable |
556+
| `internal/cli/migrate.go` | ~520 | Migrate customized/ overrides to config-driven agents |
552557
| `internal/cli/mint.go` | ~1022 | Mint deploy/enroll/unenroll/status |
553558
| `internal/cli/inference.go` | ~408 | Inference WIF provision/status |
554559
| `internal/cli/github.go` | ~966 | GitHub setup/set/status/uninstall/sync-scaffold/enroll/unenroll |

internal/cli/admin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ func newAdminCmd() *cobra.Command {
5050
cmd.AddCommand(newEnableCmd())
5151
cmd.AddCommand(newDisableCmd())
5252
cmd.AddCommand(newForeignCmd())
53+
cmd.AddCommand(newMigrateCustomizationsCmd())
5354
return cmd
5455
}
5556

0 commit comments

Comments
 (0)