Commit 5b63a0f
committed
refactor: update InventoryContextBuilder to accept typed parameters directly
- Change with_host() to accept AnsibleHost instead of &str
- Change with_ssh_priv_key_path() to accept SshPrivateKeyFile instead of &str
- Builder methods now return Self instead of Result<Self, Error>
- Validation happens at type construction level (AnsibleHost::from_str, SshPrivateKeyFile::new)
- Add concrete error types: InventoryContextError, InventoryTemplateError
- Add #[must_use] attributes to builder methods
- Update all test cases to use typed parameters
- Update E2E tests and integration tests
- All 90 tests passing, all linters passing1 parent f821e38 commit 5b63a0f
File tree
3 files changed
+317
-56
lines changed- src
- bin
- template/wrappers/ansible/inventory
- tests
3 files changed
+317
-56
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
146 | | - | |
147 | | - | |
148 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
149 | 159 | | |
150 | 160 | | |
151 | 161 | | |
| |||
0 commit comments