Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd: introduce subcommands for gokakashi #21

Merged
merged 3 commits into from
Oct 18, 2024
Merged

cmd: introduce subcommands for gokakashi #21

merged 3 commits into from
Oct 18, 2024

Conversation

scriptnull
Copy link
Member

@scriptnull scriptnull commented Oct 18, 2024

Introducing different commands in gokakashi binary.

Needed for #20

default command

This prints the help message.

$ docker run --rm gokakashi:dev.1 
GoKakashi - The Container image vulnerability management platform

Usage:
  gokakashi [flags]
  gokakashi [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  scan        Scan a container image
  server      Start the GoKakshi Server
  version     Print version

Flags:
  -h, --help   help for gokakashi

Use "gokakashi [command] --help" for more information about a command.

server command

$ docker run --rm gokakashi:dev.1 server
2024/10/18 00:10:21 === Starting goKakashi Tool ===
2024/10/18 00:10:21 Please provide the path to the config YAML file using --config

Why goKakashi to gokakashi?

Now that gokakshi can be accessed and used as a binary, people tend to ignore casing while typing commands. Hence made it to be all small letters.

@scriptnull scriptnull merged commit b711916 into main Oct 18, 2024
1 check passed
@scriptnull scriptnull deleted the cmd/init branch October 18, 2024 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant