finch icon indicating copy to clipboard operation
finch copied to clipboard

fix: add persistent flags to root finch command

Open coderbirju opened this issue 11 months ago • 0 comments

Issue #, if available: #516 Adds the global flags as persistent string flag to the root finch command. This enables the cli to display the flags when running the --help command on finch.

Description of changes:

Testing done: Verified that the command works and display the global flags.

sudo ./_output/bin/finch help build  
Build an image from Dockerfile

Usage:
  finch build [flags]

Flags:
  -h, --help   help for build

Global Flags:
      --cgroup-manager string   Cgroup manager to use ("cgroupfs"|"systemd")
      --debug                   running under debug mode
      --namespace string        containerd namespace, e.g "finch"
      --snapshotter string      containerd snapshotter
  • [x] I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

coderbirju avatar Oct 29 '24 03:10 coderbirju