aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-06-02 17:39:06 +0800
committerGitHub <noreply@github.com>2024-06-02 17:39:06 +0800
commit80e320217a2508fb665623cf994a723f83bd1390 (patch)
treee3567ef6ca3bc94362e8602ca65df7f9cbcdd5d5
parent842f5f08c9fe63c1177b6acc1dd7647276e5bde2 (diff)
downloadllm-functions-docker-80e320217a2508fb665623cf994a723f83bd1390.tar.gz
chore: add issue_templates and enhence `argc version` (#14)
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.md28
-rw-r--r--.github/ISSUE_TEMPLATE/feature_request.md22
-rw-r--r--Argcfile.sh18
-rw-r--r--README.md1
4 files changed, 67 insertions, 2 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 0000000..f8534c9
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,28 @@
+---
+name: Bug report
+about: Create a report to help us improve
+title: ''
+labels: ''
+assignees: ''
+
+---
+
+<!-- Your issue may already be reported! Please search for it before creating one. -->
+
+**Describe the bug**
+<!-- A clear and concise description of what the bug is.
+
+**To Reproduce**
+<!-- Steps to reproduce the behavior, including any relevant code snippets. -->
+
+**Expected behavior**
+<!-- A clear and concise description of what you expected to happen. -->
+
+**Screenshots/Logs**
+<!-- If applicable, add screenshots to help explain your problem. -->
+
+**Environment**
+<!-- Please run `argc version` and paste the output -->
+
+**Additional context**
+<!-- Add any other context about the problem here. --> \ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 0000000..4c0f08c
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,22 @@
+---
+name: Feature request
+about: Suggest an idea for this project
+title: ''
+labels: enhancement
+assignees: ''
+
+---
+
+<!-- Your issue may already be reported! Please search for it before creating one. -->
+
+**Is your feature request related to a problem? Please describe.**
+<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
+
+**Describe the solution you'd like**
+<!-- A clear and concise description of what you want to happen. -->
+
+**Describe alternatives you've considered**
+<!-- A clear and concise description of any alternative solutions or features you've considered. -->
+
+**Additional context**
+<!-- Add any other context or screenshots about the feature request here. --> \ No newline at end of file
diff --git a/Argcfile.sh b/Argcfile.sh
index 5b102fe..f1496ed 100644
--- a/Argcfile.sh
+++ b/Argcfile.sh
@@ -178,9 +178,17 @@ install() {
# @cmd Show versions of required tools for bug reports.
version() {
+ uname -a
argc --argc-version
jq --version
- curl --version | head -n 1
+ for item in "${LANG_CMDS[@]}"; do
+ cmd="${item#*:}"
+ if [[ "$cmd" == "bash" ]]; then
+ echo "$(argc --argc-shell-path) $("$(argc --argc-shell-path)" --version | head -n 1)"
+ elif command -v "$cmd" &> /dev/null; then
+ echo "$(_normalize_path "$(which $cmd)") $($cmd --version)"
+ fi
+ done
}
_lang_to_cmd() {
@@ -213,6 +221,14 @@ $run "%script_dir%cmd\cmd.$lang" "%script_name%.$lang" %*
EOF
}
+_normalize_path() {
+ if _is_win; then
+ cygpath -w "$1"
+ else
+ echo "$1"
+ fi
+}
+
_is_win() {
if [[ "$OS" == "Windows_NT" ]]; then
return 0
diff --git a/README.md b/README.md
index 6223976..e2e8f42 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,6 @@ Make sure you have the following tools installed:
- [argc](https://github.com/sigoden/argc): A bash command-line framewrok and command runner
- [jq](https://github.com/jqlang/jq): A JSON processor
-- [curl](https://curl.se): A command-line tool for transferring data with URLs
## Getting Started with AIChat