Open-sourced my dtools CLI

This commit is contained in:
2025-11-24 15:32:30 -07:00
parent 3cff748a76
commit 8df7811c39
254 changed files with 40015 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
long: --hf-file
short: -f
arg: hf_file
help: The Hugging Face model GGUF file to use
default: "Phi-3-mini-4k-instruct-q4.gguf"
+5
View File
@@ -0,0 +1,5 @@
long: --hf-repo
short: -r
arg: hf_repo
help: The Hugging Face repository to use
default: "microsoft/Phi-3-mini-4k-instruct-gguf"
+27
View File
@@ -0,0 +1,27 @@
- ap-south-2
- ap-south-1
- eu-south-1
- eu-south-2
- me-central-1
- ca-central-1
- eu-central-1
- eu-central-2
- us-west-1
- us-west-2
- af-south-1
- eu-north-1
- eu-west-3
- eu-west-2
- eu-west-1
- ap-northeast-3
- ap-northeast-2
- me-south-1
- ap-northeast-1
- sa-east-1
- ap-east-1
- ap-southeast-1
- ap-southeast-2
- ap-southeast-3
- ap-southeast-4
- us-east-1
- us-east-2
@@ -0,0 +1,15 @@
- instance-id
- instance-type
- private-dns-name
- private-ip-address
- public-dns-name
- subnet-id
- vpc-id
- tags
- launch-time
- availability-zone
- state
- architecture
- instance-profile
- security-groups
- os
+7
View File
@@ -0,0 +1,7 @@
long: --profile
short: -p
arg: profile
help: The AWS profile to use
validate: aws_profile_exists
completions:
- $(awk '/\[profile*/ { print substr($2, 1, length($2)-1);}' ~/.aws/config)
+7
View File
@@ -0,0 +1,7 @@
long: --region
short: -r
arg: region
default: "us-east-1"
help: The AWS region to use
allowed:
import: src/components/aws/allowed_regions.yml
@@ -0,0 +1,46 @@
- bibtex
- biblatex
- bits
- commonmark
- commonmark_x
- creole
- csljson
- csv
- tsv
- djot
- docbook
- docx
- dokuwiki
- endnotexml
- epub
- fb2
- gfm
- haddock
- html
- ipynb
- jats
- jira
- json
- latex
- markdown
- markdown_mmd
- markdown_phpextra
- markdown_strict
- mediawiki
- man
- mdoc
- muse
- native
- odt
- opml
- org
- pod
- ris
- rtf
- rst
- t2t
- textile
- tikiwiki
- twiki
- typst
- vimwiki
@@ -0,0 +1,63 @@
- ansi
- asciidoc
- asciidoc_legacy
- asciidoctor
- beamer
- bibtex
- biblatex
- chunkedhtml
- commonmark
- commonmark_x
- context
- csljson
- djot
- docbook
- docbook5
- docx
- dokuwiki
- epub
- epub2
- fb2
- gfm
- haddock
- html
- html4
- icml
- ipynb
- jats_archiving
- jats_articleauthoring
- jats_publishing
- jats
- jira
- json
- latex
- man
- markdown
- markdown_mmd
- markdown_phpextra
- markdown_strict
- markua
- mediawiki
- ms
- muse
- native
- odt
- opml
- opendocument
- org
- pdf
- plain
- pptx
- rst
- rtf
- texinfo
- textile
- slideous
- slidy
- dzslides
- revealjs
- s5
- tei
- typst
- xwiki
- zimwiki
+42
View File
@@ -0,0 +1,42 @@
- africa-south1
- asia-east1
- asia-east2
- asia-northeast1
- asia-northeast2
- asia-northeast3
- asia-south1
- asia-south2
- asia-southeast1
- asia-southeast2
- australia-southeast1
- australia-southeast2
- europe-central2
- europe-north1
- europe-north2
- europe-southwest1
- europe-west1
- europe-west10
- europe-west12
- europe-west2
- europe-west3
- europe-west4
- europe-west6
- europe-west8
- europe-west9
- me-central1
- me-central2
- me-west1
- northamerica-northeast1
- northamerica-northeast2
- northamerica-south1
- southamerica-east1
- southamerica-west1
- us-central1
- us-east1
- us-east4
- us-east5
- us-south1
- us-west1
- us-west2
- us-west3
- us-west4
+7
View File
@@ -0,0 +1,7 @@
long: --location
short: -l
arg: location
default: 'us-central1'
help: The GCP location to use
allowed:
import: src/components/gcp/allowed_locations.yml
+6
View File
@@ -0,0 +1,6 @@
long: --project
short: -p
arg: project
help: The GCP project to use
completions:
- $(gcloud projects list | awk 'NR > 1 {print $1}')