From 6af597b4271341f9796c3d9c356de9918e0f6f85 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 28 Jun 2021 22:47:10 +0100 Subject: [PATCH] fix(cask): add missing --force flag to cask update command --- pkg/cli/cask.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/cli/cask.go b/pkg/cli/cask.go index 4afc4ea..e65456f 100644 --- a/pkg/cli/cask.go +++ b/pkg/cli/cask.go @@ -97,6 +97,14 @@ func caskUpdateCmd() *cli2.Command { EnvVars: []string{"CASK_TEMPLATE_DIR"}, Required: true, }, + &cli2.BoolFlag{ + Name: "force", + Aliases: []string{"f"}, + Usage: "force update file even if livecheck has it marked " + + "as not outdated (does not force update if formula " + + "content is unchanged)", + Value: false, + }, }, Action: caskActionWrapper(caskUpdateAction), } @@ -112,6 +120,7 @@ func caskUpdateAction( GithubToken: cOpts.GithubToken, Ref: c.String("ref"), OutputDir: c.String("output"), + Force: c.Bool("force"), TemplatesDir: c.String("templates-dir"), }