mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
commands: Remove flagChanged from commandeer
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
eb27c47fc5
commit
c7535b9c25
@@ -95,11 +95,11 @@ func NewContent(cmd *cobra.Command, args []string) error {
|
||||
|
||||
c := newCommandeer(cfg)
|
||||
|
||||
if c.flagChanged(cmd.Flags(), "format") {
|
||||
if flagChanged(cmd.Flags(), "format") {
|
||||
c.Set("metaDataFormat", configFormat)
|
||||
}
|
||||
|
||||
if c.flagChanged(cmd.Flags(), "editor") {
|
||||
if flagChanged(cmd.Flags(), "editor") {
|
||||
c.Set("newContentEditor", contentEditor)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user