command
module
Version:
v1.11.0
Opens a new window with list of versions in this module.
Published: Mar 12, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
ยถ
ASPRI (Asisten Pribadi)
๐ a Collection of scripts and libraries to speed up sotware development process
๐ Installation
You can install aspri by using one of these method
Install from binary
- Download the latest binary from release branch
- Extract the binary to your
$PATH
directory
- Make sure the binary is executable
Install using go get
- Run :
go get github.com/artistudioxyz/aspri
Install from source
- Re-initiate go.mod :
rm go.mod && go mod init aspri
- Go Install :
go install
- to Generate binary for other OS :
./build.sh
Note
- Please add your Go install directory to your system's shell path. Learn More
- Tutorial in bahasa can be found here
๐ 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 -f {filename}
File :
- Asset minifier (.js and .css) :
--minify --path {workdir}
- Count files containing text :
--file --count --path {workdir} --text {text} --exclude {dirname}
- Directory Stats :
--dir --stats --path {workdir}
- Extract Urls :
--extract-url --path {workdir} --url {url}
- Remove Directories or Files Nested by Filenames :
- Remove Directories
--dir --remove --dirname {dirname} --path {workdir}
- Remove Files
--file --remove --f {filename} --path {workdir}
- Remove Files Nested Except Extensions :
--file --remove --ext {.php} --except {composer.json} --path {workdir}
- Remove Files older than x days matching regex nested :
--file --remove --older-than --days {days} --regex {regex} --path {workdir} --dry-run
- Remove Directory older than x days :
--dir --remove --older-than --days {days} --level {0} --path {workdir} --dry-run
- Search and Replace in Directory or File :
--search-replace --path {dir or file} --from {text} --to {text}
- Support Multiple Params
- Dirname :
--dirname {dirname}
- Filename :
-f {filename}
- Except :
--except {except}
- Extension :
--ext {ext}
Git :
- Commit and Push :
--git -m {message}
- Gone :
--git --gone
- Reset to previous state (Ignore changes and Remove untracked files) :
--git -reset
- Reset Cache :
--git --reset-cache
Markdown :
- Remove Link from Markdown File :
--md --remove-link --path {workdir}
NoIP :
- Update Hostname :
--noip --update -u {username} -p {password} --hostname {hostname}
PHP :
- List all class in directory nested :
--php --list-class --path {workdir}
- List all function in directory nested :
--php --list-function --path {workdir}
- List function call in directory nested :
--php --list-function-call --path {workdir} --functionname {functionname}
- Support Multiple Params
- FunctionName :
--functionname {FunctionName}
PHPCS :
- PHPCS Install Ruleset :
--phpcs --install
Rsync
- Generate Rsync command based on rsync.json :
--rsync
Miscellaneous :
- Self Update :
--self-update
Quotes :
- Quote of the day :
--quote-of-the-day
Syncthing :
- Remove all conflicts files after certain days :
--syncthing --remove-conflicts --days {days} --dry-run
WordPress :
- Refactor Dot Framework :
--wp-refactor --path {workdir} --from {namespace} --to {namespace} --type {plugin|theme}
- WP Clean Project Files for Production :
--wp-clean --path {workdir} --type {wordpress|github}
- WP Plugin Build Check :
--wp-plugin-build-check --path {workdir}
- Build WP Plugin :
--wp-plugin-build --path {workdir} --type {wordpress|github}
- Release WP Plugin :
--wp-plugin-release --path {workdir} --to {version}
- WP Theme Build Check :
--wp-theme-build-check --path {workdir}
- Build WP Plugin :
--wp-theme-build --path {workdir} --type {wordpress|github}
YouTube
- Extract YouTube Video Data :
--youtube --extract --path {filepath}
โ๏ธ Built with
โญ๏ธ Support & Contribution
- Help support me by giving a ๐ or donate
Documentation
ยถ
There is no documentation for this package.
Source Files
ยถ
Directories
ยถ
Click to show internal directories.
Click to hide internal directories.