π a Collection of scripts and libraries to speed up sotware development process
- Run :
go get github.com/artistudioxyz/aspri
- Run :
aspri --help
Note :
- Please add your go install to system PATH Learn More
ChatGPT :
- Start Chat :
--chatgpt --api-key {API_KEY}
- The chat support multiple line, don't forget to end it with
~
to get an answer. - Get the api key from here
- The chat support multiple line, don't forget to end it with
Docker :
- Stop and Remove Container :
--docker --prune -id {identifier}
- Compose restart (down & up) :
--docker-compose-restart
Git :
- Commit and Push :
--git -m {message}
- Reset Cache :
--git-reset-cache
- Reset Cache :
Markdown :
- Remove Link from Markdown File :
--md --remove-link --path {workdir}
PHP :
- Lists all class in directory nested :
--php --list-class --path {workdir}
- Lists all function in directory nested :
--php --list-function --path {workdir}
- Remove PHP function in path by name :
--php --remove-function --functionname {FunctionName} --path {PathToClassorFunction}
- Support Multiple Params
- FunctionName :
--functionname {FunctionName}
- FunctionName :
- Remove Directories or Files Nested by Filenames :
- Remove Directories
--dir --remove --dirname {filename} --path {workdir}
- Remove Files
--file --remove --filename {filename} --path {workdir}
- Remove Directories
- Remove Files Nested Except Extensions :
--file --remove --ext {.php} --except {composer.json} --path {workdir}
- Search and Replace in Directory or File :
--search-replace --path {dir or file} --from {text} --to {text}
- Support Multiple Params
- Dirname :
--dirname {dirname}
- Filename :
--filename {filename}
- Except :
--except {except}
- Extension :
--ext {ext}
- Dirname :
Quotes :
- Quote of the day :
--quote-of-the-day
- Refactor Dot Framework :
--wp-refactor --path {workdir} --from {namespace} --to {namespace} --type {plugin|theme}
- WP Plugin Build Check :
--wp-plugin-build-check --path {workdir}
- Build WP Plugin (Require Path) :
--wp-plugin-build --path {workdir} --type {wordpress|github}
- Build WP Plugin (Require Path) :
- WP Theme Build Check :
--wp-theme-build-check --path {workdir}
- Build WP Plugin (Require Path) :
--wp-theme-build --path {workdir} --type {wordpress|github}
- Build WP Plugin (Require Path) :
Development notes
- Install from source
- Re-initiate go.mod :
rm go.mod && go mod init aspri
- Go Install :
go install
- Run :
aspri --help
- Re-initiate go.mod :
- Deployment to registry :
GOPROXY=proxy.golang.org go list -m github.com/artistudioxyz/aspri@{version}