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
CDTOOL-1260: Introduce 'service purge' command and 'purge' alias. (#1612)
### Change summary
This PR adds the 'service purge' command as a replacement for the
'purge' command. The 'purge' command is still available as an alias, but
will issue a deprecation warning when it is used.
This involved a number of changes:
1. The existing 'pkg/commands/purge' package content was moved to
'pkg/commands/service/purge', and modified to work as expected in that
location.
2. A new 'pkg/commands/alias' package was added to hold alias-only
packages.
3. An alias was added in 'pkg/commands/alias/purge'. This alias uses
`struct` embedding to avoid duplicating any of the code from the
`pkg/commands/service/purge' package. The alias command is 'unlisted'
and issues a deprecation warning when it is used.
This PR also fixes the `make fmt` target in the `Makefile` to work
properly.
All Submissions:
* [X] Have you followed the guidelines in our Contributing document?
* [X] Have you checked to ensure there aren't other open [Pull
Requests](https://github.com/fastly/cli/pulls) for the same
update/change?
<!-- You can erase any parts of this template not applicable to your
Pull Request. -->
### New Feature Submissions:
* [X] Does your submission pass tests?
### User Impact
<!-- What is the user impact of this change? -->
New deprecation warning for the `purge` command.
- feat(commands/ngwaf/rules): add support for CRUD operations for NGWAF rules ([#1578](https://github.com/fastly/cli/pull/1605))
10
+
- feat(commands/ngwaf/rules): add support for CRUD operations for NGWAF rules ([#1605](https://github.com/fastly/cli/pull/1605))
11
11
- feat(compute/deploy): added the `--no-default-domain` flag to allow for the skipping of automatic domain creation when deploying a Compute service([#1610](https://github.com/fastly/cli/pull/1610))
12
+
- feat(commands/service/purge): Add 'service purge' command as replacement for 'purge', with an unlisted and deprecated alias of 'purge'. ([#1612](https://github.com/fastly/cli/pull/1612))
0 commit comments