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

feat(capture): add --name flag #39

Merged
merged 8 commits into from
Aug 28, 2024
Merged

feat(capture): add --name flag #39

merged 8 commits into from
Aug 28, 2024

Conversation

alegrey91
Copy link
Owner

Closes #38

Signed-off-by: Alessio Greggi <ale_grey_91@hotmail.it>
@alegrey91 alegrey91 requested a review from ccoVeille August 27, 2024 16:21
Signed-off-by: Alessio Greggi <ale_grey_91@hotmail.it>
internal/writer/write.go Outdated Show resolved Hide resolved
cmd/capture.go Outdated
@@ -75,6 +77,7 @@ func init() {
captureCmd.Flags().BoolVarP(&libbpfOutput, "include-libbpf-output", "l", false, "Include the libbpf output")

captureCmd.Flags().BoolVarP(&save, "save", "S", false, "Save output to a file")
captureCmd.Flags().StringVarP(&name, "name", "n", "", "Specify a name for saved output")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
captureCmd.Flags().StringVarP(&name, "name", "n", "", "Specify a name for saved output")
captureCmd.Flags().StringVarP(&filename, "filename", "n", "", "Specify a filename for saved output")

Copy link
Owner Author

Choose a reason for hiding this comment

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

I want to have consistency and keep the flag "name" since other commands are using the same

cmd/capture.go Outdated Show resolved Hide resolved
cmd/capture.go Outdated Show resolved Hide resolved
internal/writer/write.go Outdated Show resolved Hide resolved
alegrey91 and others added 5 commits August 28, 2024 01:03
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
Signed-off-by: Alessio Greggi <ale_grey_91@hotmail.it>
@alegrey91 alegrey91 requested a review from ccoVeille August 27, 2024 23:06
Signed-off-by: Alessio Greggi <ale_grey_91@hotmail.it>
@alegrey91 alegrey91 merged commit d44a475 into main Aug 28, 2024
3 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.

Add flag --name in capture command
2 participants