mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-05-05 20:42:33 +02:00
Alter existing "deprecated" function to return all migration notices (#159)
This commit is contained in:
parent
5960d7facb
commit
709b136563
7 changed files with 19 additions and 122 deletions
|
@ -12,8 +12,8 @@ import (
|
|||
func NewDeprecatedCmd() *cobra.Command {
|
||||
deprecatedCmd := &cobra.Command{
|
||||
Use: "deprecated",
|
||||
Short: "Deprecated returns a list of deprecated plugins or directives present in the Corefile.",
|
||||
Example: `# See deprecated plugins CoreDNS from v1.4.0 to v1.5.0.
|
||||
Short: "Deprecated returns a list of deprecated, removed, ignored and new default plugins or directives present in the Corefile.",
|
||||
Example: `# See deprecated, removed, ignored and new default plugins CoreDNS from v1.4.0 to v1.5.0.
|
||||
corefile-tool deprecated --from 1.4.0 --to 1.5.0 --corefile /path/to/Corefile`,
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
from, _ := cmd.Flags().GetString("from")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue