Yasp is a simplified snitch cli tool to help with code maitenance, heavily inspired by (copied from) /tsoding/snitch.
- Pretty print a directory file structure.
- Print all prints and todos statements found within the code.
- Checks if projects env files are present and filled.
- List open issues found in GitLab and submit new ones.
- Supports ignore like files to ignore files and directories for all commands.
- Customization of print, todos and issues commands.
The default directory is the cwd and the default ignore file is .yaspignore.
go build .
./yasp -c <command>
Available commands:
- ls: pretty prints the directory file structure.
- env: checks if projects env files are present, with the correct variables declared and filled.
- print: prints all the print statements found within the directory files.
- todo: prints all the todo statements.
- diag: runs the env, print and todo commands.
- issues: prints project's GitLab issues.
- snitch: finds every instance of TODO! in the code and submits it as a new GitLab issue.
- -d /path/to/dir
- Absolute path to the root dir in which the program will run.
- -i /path/to/file
- Absolute path to the ignore like file.
The default ignore file, and the supported print and todo commands can be changed in the yasp.yml file.
To use GitLab's issues functionalities some environment variables must be set in a .env file according to the following:
GITLAB_TOKEN=<token>
GITLAB_API_URL=https://gitlab.com/api/v4/projects
GITLAB_PROJECT_ID=<project id>
- Add relative imports to the env files in yasp.yml.
- Add custom separators to the env configs in yasp.yml.
- Add descriptions to opened GitLab issues.
- Improve regexes for more precision in the searches.
- Improve performance.