Commit 804252c
refactor: prep cli for migration (#247)
# Refactor: Reorganize CLI code structure
## Overview
This PR reorganizes the World CLI codebase into a more standard Go
project structure. The code has been moved from a flat structure to a
hierarchical one, with packages organized under `internal/app/world-cli`
and shared utilities under `internal/pkg`. This improves maintainability
and follows Go best practices for package organization.
## Brief Changelog
- Moved command implementations from separate packages to a single
`main` package
- Renamed command structs to be more descriptive (e.g., `StartCmd` →
`StartCardinalCmd`)
- Relocated core functionality to `internal/app/world-cli` directory
- Moved utility packages to `internal/pkg` directory
- Removed `.vscode/launch.json` configuration file
- Consolidated deployment type constants in the models package
- Removed unused code and dependencies
## Testing and Verifying
This change is a code reorganization without functional changes. The
existing tests have been updated to work with the new structure and
should continue to pass.
---------
Co-authored-by: Ed Zavada <edmund@argus.gg>1 parent fd55650 commit 804252c
210 files changed
Lines changed: 880 additions & 1221 deletions
File tree
- .github/workflows
- .vscode
- cmd/world
- root
- common/util
- gen/logs/v1
- internal
- app/world-cli
- clients
- api
- browser
- repo
- commands
- cardinal
- cloud
- evm
- organization
- project
- root
- user
- common
- config
- dependency
- docker
- service
- editor
- login
- teacmd
- telemetry
- testdata
- starter-game-template
- cardinal
- .run
- component
- msg
- query
- system
- toml
- tomlutil
- utils
- slug
- validate
- controllers/cmd_setup
- gen/logs/v1/logsv1connect
- interfaces
- models
- proto/logs/v1
- services
- config
- input
- taskfiles
- pkg
- logger
- printer
- tea
- component
- multiselect
- multispinner
- program
- spinner
- steps
- style
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
37 | 46 | | |
| 47 | + | |
38 | 48 | | |
| 49 | + | |
39 | 50 | | |
40 | 51 | | |
41 | 52 | | |
| |||
52 | 63 | | |
53 | 64 | | |
54 | 65 | | |
| 66 | + | |
55 | 67 | | |
56 | 68 | | |
57 | 69 | | |
58 | 70 | | |
59 | 71 | | |
60 | 72 | | |
| 73 | + | |
61 | 74 | | |
62 | 75 | | |
63 | 76 | | |
| |||
66 | 79 | | |
67 | 80 | | |
68 | 81 | | |
| 82 | + | |
69 | 83 | | |
70 | | - | |
71 | 84 | | |
72 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
73 | 95 | | |
74 | 96 | | |
75 | 97 | | |
| 98 | + | |
76 | 99 | | |
77 | 100 | | |
78 | 101 | | |
79 | 102 | | |
| 103 | + | |
80 | 104 | | |
81 | 105 | | |
82 | 106 | | |
| |||
89 | 113 | | |
90 | 114 | | |
91 | 115 | | |
92 | | - | |
| 116 | + | |
93 | 117 | | |
94 | 118 | | |
95 | 119 | | |
| |||
99 | 123 | | |
100 | 124 | | |
101 | 125 | | |
| 126 | + | |
102 | 127 | | |
103 | 128 | | |
104 | 129 | | |
105 | 130 | | |
| 131 | + | |
106 | 132 | | |
107 | 133 | | |
108 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
109 | 140 | | |
| 141 | + | |
110 | 142 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 1 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 2 | + | |
| 3 | + | |
This file was deleted.
0 commit comments