Skip to content

πŸ’ƒ a Collection of scripts and libraries to speed up sotware development process

License

Notifications You must be signed in to change notification settings

artistudioxyz/aspri

Repository files navigation

Last Commit Code Size Go Mod Version Latest Tag Build Status Stars

ASPRI (Asisten Pribadi)

πŸ’ƒ a Collection of scripts and libraries to speed up sotware development process

πŸ“ Installation

  • Run : go get github.com/artistudioxyz/aspri
  • Run : aspri --help

Note :

  • Please add your go install to system PATH Learn More

πŸ“Ÿ Commands

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

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

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}

Miscellaneous :

  • Remove Directories or Files Nested by Filenames :
    • Remove Directories --dir --remove --dirname {filename} --path {workdir}
    • Remove Files --file --remove --filename {filename} --path {workdir}
  • 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}

Quotes :

  • Quote of the day : --quote-of-the-day

WordPress :

  • 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}
  • WP Theme Build Check : --wp-theme-build-check --path {workdir}
    • Build WP Plugin (Require Path) : --wp-theme-build --path {workdir} --type {wordpress|github}

βš’οΈ Built with

πŸ”₯ Development Notes

Development notes

  • Install from source
    • Re-initiate go.mod : rm go.mod && go mod init aspri
    • Go Install : go install
    • Run : aspri --help
  • Deployment to registry : GOPROXY=proxy.golang.org go list -m github.com/artistudioxyz/aspri@{version}

About

πŸ’ƒ a Collection of scripts and libraries to speed up sotware development process

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages