Skip to content

Issue 19: Log command-line arguments at start #20

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

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Conversation

mrajagopal
Copy link
Collaborator

  • Log the command-line input by the user
  • os.Args hold the command-line arguments, starting with the program name

Example:
2024/07/11 03:30:41.601650 nginx-supportpkg.go:48: Starting kubectl-nginx-suportpkg - version: dev - build: dev 2024/07/11 03:30:41.601736 nginx-supportpkg.go:49: Input args are [/usr/local/bin/kubectl-nginx_supportpkg -n kic-0 -p nic]

* Log the command-line input by the user
* os.Args hold the command-line arguments, starting with the program name
@mrajagopal mrajagopal requested a review from a team as a code owner July 11, 2024 03:33
Copy link
Collaborator

@dareste dareste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mrajagopal mrajagopal merged commit 1f9733d into main Jul 11, 2024
2 checks passed
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.

2 participants