Skip to content

Commit 0391999

Browse files
Adjust validate-config occurences to the rename (#1023)
Adjust validate-config occurences to the rename The command was renamed from validate-config to config validate in packit/packit#2559 TODO: fix references (packit-service, ?) RELEASE NOTES BEGIN N/A RELEASE NOTES END Reviewed-by: František Lachman <flachman@redhat.com>
2 parents dd28747 + 6b5be7d commit 0391999

7 files changed

Lines changed: 10 additions & 10 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
2-
title: validate-config
2+
title: validate
33
date: 2021-03-18T08:48:36+01:00
44
sidebar_position: 30
55
---
6-
# `packit validate-config`
6+
# `packit config validate`
77

88
Validate the Packit configuration file.
99

1010

1111
## Help
1212

13-
Usage: packit validate-config [OPTIONS] [PATH_OR_URL]
13+
Usage: packit config validate [OPTIONS] [PATH_OR_URL]
1414

1515
Validate PackageConfig.
1616

docs/cli/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ configuration files, like in the following examples:
9999
* [srpm](/docs/cli/srpm/)
100100
* [status](/docs/cli/status)
101101
* [sync-from-downstream](/docs/cli/sync-from-downstream/)
102-
* [validate-config](/docs/cli/validate-config)
102+
* [config validate](/docs/cli/config/validate)
103103
* [source-git init](/docs/cli/source-git/init)
104104
* [source-git update-dist-git](/docs/cli/source-git/update-dist-git)
105105
* [source-git update-source-git](/docs/cli/source-git/update-source-git)

docs/configuration/downstream_configuration_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This is a template for configuration of Packit's Fedora release automation (dist
1010
2. create a `packit.yaml`/`.packit.yaml` file in root directory of your dist-git repository in your `rawhide` branch
1111
and paste the content
1212
3. resolve the TODOs
13-
4. (optionally) run [`packit validate-config`](/docs/cli/validate-config) to make sure the configuration is valid
13+
4. (optionally) run [`packit config validate`](/docs/cli/config/validate) to make sure the configuration is valid
1414

1515
## Template
1616
```yaml

docs/fedora-releases-guide/dist-git-onboarding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Packit dist-git configuration.
5252
:::tip Configuration validation
5353

5454
For validation of the configuration, you can utilise
55-
Packit CLI command [`validate-config`](/docs/cli/validate-config) or our
55+
Packit CLI command [`config validate`](/docs/cli/config/validate) or our
5656
[pre-commit hooks](/posts/pre-commit-hooks#validate-config).
5757

5858
:::

docs/fedora-releases-guide/what-to-know.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ During service outages, maintain workflow using Packit CLI:
6868
2. [Configure required tokens](https://packit.dev/docs/configuration#user-configuration-file)
6969
3. Verify setup (if not already working in service):
7070
- Follow [dist-git onboarding guide](https://packit.dev/docs/fedora-releases-guide/dist-git-onboarding)
71-
- Validate config with `packit validate-config`
71+
- Validate config with `packit config validate`
7272

7373
#### Troubleshooting Issues
7474

docs/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ For downstream jobs, Packit always loads the config from the default branch of t
246246
:::tip
247247

248248
For validation of the configuration, you can utilise
249-
Packit CLI command [`validate-config`](/docs/cli/validate-config) or our
249+
Packit CLI command [`config validate`](/docs/cli/config/validate) or our
250250
[pre-commit hooks](/posts/pre-commit-hooks#validate-config).
251251

252252
:::

posts/pre-commit-hooks/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ To try, add this to your `.pre-commit-config.yaml`
4646
4747
Packit uses a [YAML configuration file](https://packit.dev/docs/configuration)
4848
in an upstream repository.
49-
We have a [packit validate-config](https://packit.dev/docs/cli/validate-config) command
49+
We have a [packit config validate](https://packit.dev/docs/cli/config/validate) command
5050
to check it, but it's easy to forget (to run it) and notice a typo after you
5151
committed and pushed the changes and waited for some time for Packit to tell you
5252
that in a PR.
@@ -57,7 +57,7 @@ It's much faster to catch the problem before committing and/or pushing the chang
5757
5858
This hook runs (only if there's been a change in the `.packit.yaml`)
5959
`packit` in a container (from [our image](https://quay.io/repository/packit/packit)),
60-
mounts your sources inside and runs the `packit validate-config`.
60+
mounts your sources inside and runs the `packit config validate`.
6161

6262
```yaml
6363
- repo: https://github.com/packit/pre-commit-hooks

0 commit comments

Comments
 (0)