Commit 9ea2b6e
committed
refactor: move CI workflow to pkg/ci/github
The CI workflow generation lived in cmd/ci/, tightly coupled to
the command layer via viper flag reads and direct file I/O. This
made it impossible to reuse or test the generator independently.
Move workflow generation, printing, and writing into
pkg/ci/github/ as a self-contained package. Introduce CI and
PathWriter interfaces in pkg/functions/client.go so the client
can orchestrate workflow generation without depending on the
cmd layer. The cmd/config_ci.go command now resolves flags and
delegates to client.GenerateCIWorkflow().
Also fix typos: --patform → --platform, functionl → function,
proivdes → provides, precldes → precedes, sevices → services,
suppot → support, Desribe → Describe, pipilines → pipelines,
intance → instance.
Issue #3256
Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>1 parent 40d337d commit 9ea2b6e
19 files changed
Lines changed: 4917 additions & 5399 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
| 504 | + | |
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
| 18 | + | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| |||
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | | - | |
51 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
0 commit comments