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

Implements init subcommand with optional path for aderyn.toml #762

Merged

Conversation

mgiagante
Copy link
Contributor

This PR solves Issue 744 by:

  • Adding a new init subcommand in aderyn/src/main.rs. If no path is provided, the file is created at the root directory.
  • Implementing the validate_path_for_file_creation function at aderyn/src/lib.rs to ensure the provided optional path exists and is a directory.

The use of --init is still supported for creating aderyn.toml at the root directory.

@mgiagante
Copy link
Contributor Author

@TilakMaddy It's ready for review. Thanks!

@TilakMaddy
Copy link
Collaborator

TilakMaddy commented Oct 12, 2024

LGTM ! I'll make some slight changes (to make CI happy) and include this in the next release :) Thank you !

@mgiagante
Copy link
Contributor Author

@TilakMaddy I just pushed a commit to fix the linting error. 👍

@TilakMaddy TilakMaddy force-pushed the feature/add-optional-path-to-aderyn-init branch from adf7de5 to 25a152a Compare October 12, 2024 06:10
@TilakMaddy TilakMaddy merged commit 47792bf into Cyfrin:dev Oct 12, 2024
6 checks passed
@TilakMaddy
Copy link
Collaborator

Fix #744

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