You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A CLI and Android Studio plugin for generating Clean Architecture boilerplate including whole projects, features, data sources, use cases, ViewModels, and architecture packages.
4
-
5
-
### Android Studio plugin
1
+
# Clean Architecture Generator ✨
2
+
3
+
A CLI and Android Studio plugin for generating Clean Architecture boilerplate.
If you prefer to use `man` to read your documentation, this section is for you.
103
121
104
122
```bash
105
123
# Generate man page (writes cli/build/man/cag.1)
@@ -112,7 +130,7 @@ Manual page (optional):
112
130
man cag
113
131
```
114
132
115
-
### CLI configuration (.cagrc)
133
+
### Configuration (.cagrc)
116
134
117
135
You can configure library and plugin versions used by the CLI via a simple INI-style config file named `.cagrc`.
118
136
@@ -153,43 +171,14 @@ okhttp3=4.12.0
153
171
154
172
With the above, new projects will use `composeBom=2025.09.01` (from project), `kotlin=2.2.10` (from home). For operations on existing projects, `retrofit=2.11.0` (home) and `okhttp3=4.12.0` (project) will be applied.
155
173
156
-
### CLI configuration (.cagrc)
157
-
158
-
You can configure library and plugin versions used by the CLI via a simple INI-style config file named `.cagrc`.
159
-
160
-
- Locations:
161
-
- Project root: `./.cagrc`
162
-
- User home: `~/.cagrc`
163
-
164
-
- Precedence:
165
-
- Values in the project `.cagrc` override values in`~/.cagrc`.
166
-
167
-
- Sections:
168
-
- `[new.versions]` — applied when generating new projects (e.g., `--new-project`).
169
-
- `[existing.versions]` — applied when generating into an existing project (e.g., new architecture, feature, data source, use case, or view model).
170
-
171
-
- Keys correspond to version keys used by the generator, for example: `kotlin`, `androidGradlePlugin`, `composeBom`, `composeNavigation`, `retrofit`, `ktor`, `okhttp3`, etc.
172
-
173
-
Example `~/.cagrc`:
174
-
175
-
```
176
-
[new.versions]
177
-
kotlin=2.2.10
178
-
composeBom=2025.08.01
179
-
180
-
[existing.versions]
181
-
retrofit=2.11.0
182
-
ktor=3.0.3
183
-
```
174
+
## Contributing
175
+
Contributions to this project are welcome. Learn about [contributing](https://github.com/ArmynC/ArminC-AutoExec/blob/master/.github/CONTRIBUTING.md).
184
176
185
-
Example `./.cagrc` (project overrides):
177
+
## Support
178
+
Reach out to me via my **[profile page](https://github.com/EranBoudjnah)**.
With the above, new projects will use `composeBom=2025.09.01` (from project), `kotlin=2.2.10` (from home). For operations on existing projects, `retrofit=2.11.0` (home) and `okhttp3=4.12.0` (project) will be applied.
0 commit comments