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: Add flags to CLI #21

Merged
merged 4 commits into from
Apr 12, 2023
Merged

Conversation

JoseAngel1196
Copy link
Contributor

@JoseAngel1196 JoseAngel1196 commented Apr 12, 2023

Changes Made

  • Implemented 2 new flags for the CLI.

Description

As a continuation of the work started in this PR, this pull request (PR) focuses on enhancing the CLI functionality after the introduction of the new CLI framework and the redefined project structure.

In this PR, I have added 2 new flags that will improve the execution speed and flexibility of the CLI:

  • --disable-slack: This flag eliminates the need to manually comment out the SLACK_TOKEN from the .env file. Instead, it can now be included when interacting with the CLI, for example: vulnbot scan --disable-slack.

  • --config: This flag allows for specifying a dynamic config file path, providing the flexibility to use a custom config.toml file located at any desired location in the system. For example: vulnbot scan --config /home/jose/config.toml. 😀
    These additions aim to make the CLI more efficient and user-friendly, providing enhanced options for customization and configuration.

@JoseAngel1196 JoseAngel1196 force-pushed the feature/add-flags-with-cobra-cli branch from 06a1cd7 to d74640e Compare April 12, 2023 14:42
@JoseAngel1196 JoseAngel1196 changed the title WIP - feat: Add flags to CLI feat: Add flags to CLI Apr 12, 2023
@JoseAngel1196 JoseAngel1196 marked this pull request as ready for review April 12, 2023 15:57
Base automatically changed from feature/install-cobra-cli to main April 12, 2023 18:24
configs/config.go Outdated Show resolved Hide resolved
@JoseAngel1196 JoseAngel1196 force-pushed the feature/add-flags-with-cobra-cli branch from d74640e to 9bca424 Compare April 12, 2023 18:25
internal/utils.go Outdated Show resolved Hide resolved
@tarkatronic tarkatronic merged commit b7929e6 into main Apr 12, 2023
@tarkatronic tarkatronic deleted the feature/add-flags-with-cobra-cli branch April 12, 2023 19:24
@tarkatronic tarkatronic added this to the Version 1.0 milestone May 16, 2023
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