Skip to content

Commit 344e4e9

Browse files
authored
feat(config): rename publish channel field to publish-channel and PublishChannel (#96)
Changes the naming of the publish channel field from channel to publish-channel in JSON and table output.
1 parent 16af41c commit 344e4e9

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

docs/user/how-to/inspect-package-config.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ azldev package list -a
2828
Example output:
2929

3030
```
31-
╭──────────────────┬────────────────┬───────────┬──────────────╮
32-
│ PACKAGE │ GROUP │ COMPONENT │ CHANNEL
33-
├──────────────────┼────────────────┼───────────┼──────────────┤
34-
│ curl-debugsource │ debug-packages │ │ rpm-debug │
35-
│ libcurl │ base-packages │ │ rpm-base │
36-
│ libcurl-devel │ devel-packages │ curl │ rpm-base │
37-
│ wget2-wget │ │ wget2 │ rpm-base │
38-
╰──────────────────┴────────────────┴───────────┴──────────────╯
31+
╭──────────────────┬────────────────┬───────────┬─────────────────
32+
│ PACKAGE │ GROUP │ COMPONENT │ PUBLISH CHANNEL
33+
├──────────────────┼────────────────┼───────────┼─────────────────
34+
│ curl-debugsource │ debug-packages │ │ rpm-debug
35+
│ libcurl │ base-packages │ │ rpm-base
36+
│ libcurl-devel │ devel-packages │ curl │ rpm-base
37+
│ wget2-wget │ │ wget2 │ rpm-base
38+
╰──────────────────┴────────────────┴───────────┴─────────────────
3939
```
4040

4141
### Column meanings
@@ -45,7 +45,7 @@ Example output:
4545
| **Package** | Binary package name (RPM `Name` tag) |
4646
| **Group** | Package-group whose `packages` list contains this package, if any |
4747
| **Component** | Component that has an explicit `packages.<name>` override for this package, if any |
48-
| **Channel** | Effective publish channel after all config layers are applied |
48+
| **Publish Channel** | Effective publish channel after all config layers are applied |
4949

5050
> **Note:** A non-empty **Component** column means the component has an explicit
5151
> per-package entry in its `packages` map — it does **not** mean "the component
@@ -84,7 +84,7 @@ azldev package list -a -q -O json
8484
"packageName": "libcurl",
8585
"group": "base-packages",
8686
"component": "",
87-
"channel": "rpm-base"
87+
"publishChannel": "rpm-base"
8888
},
8989
...
9090
]

internal/app/azldev/cmds/component/build.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ type RPMResult struct {
5252

5353
// Channel is the resolved publish channel from project config.
5454
// Empty when no channel is configured for this package.
55-
Channel string `json:"channel" table:"Channel"`
55+
Channel string `json:"publishChannel" table:"Publish Channel"`
5656
}
5757

5858
// ComponentBuildResults summarizes the results of building a single component.
@@ -68,7 +68,7 @@ type ComponentBuildResults struct {
6868

6969
// RPMChannels holds the resolved publish channel for each RPM, parallel to [RPMPaths].
7070
// Empty string means no channel was configured for that package.
71-
RPMChannels []string `json:"rpmChannels" table:"Channels"`
71+
RPMChannels []string `json:"rpmChannels" table:"Publish Channels"`
7272

7373
// RPMs contains enriched per-RPM information including the resolved publish channel.
7474
RPMs []RPMResult `json:"rpms" table:"-"`

internal/app/azldev/cmds/pkg/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ type PackageListResult struct {
8686

8787
// Channel is the resolved publish channel after applying all config layers.
8888
// Empty means no channel has been configured.
89-
Channel string `json:"channel" table:"Channel"`
89+
Channel string `json:"publishChannel" table:"Publish Channel"`
9090
}
9191

9292
// buildComponentPackageIndex builds a map from binary package name to the component

0 commit comments

Comments
 (0)