polish: add install.sh, XDG setup, deployments/ examples, and github-token docs\n\n- Add install.sh following XDG Base Directory specification (~/.config/archie, ~/.local/share/archie, ~/.local/bin)\n- Add interactive setup for code forge (GitHub / Gitea / Standalone) and LLM provider selection (Ollama model picker / Cloud keys)\n- Implement NoopForge in internal/forge/noop.go for running Archie in standalone mode without a forge\n- Enable loginctl user linger and systemd user unit setup in install.sh\n- Add docs/github-token.md with step-by-step guidance for Classic PAT generation\n- Add top-level deployments/ directory with scenario templates (single-forge GitHub, multi-forge GitHub+Gitea, local Ollama standalone, systemd runbook)

This commit is contained in:
sam committed 2026-07-30 01:25:46 +10:00
1 parent 52d21d6607
commit 6be754787d
19 files changed
+936 -53

No files matched your search

+6 -14
View File
@@ -3,6 +3,7 @@ package command
import (
"fmt"
"os"
"slices"
"strings"
)
@@ -310,10 +311,8 @@ func checkKillAll(seg Segment) (string, bool) {
if baseName(seg.Name) != "kill" {
return "", false
}
for _, arg := range seg.Args {
if arg == "-1" {
return "signals every process on the system", true
}
if slices.Contains(seg.Args, "-1") {
return "signals every process on the system", true
}
return "", false
}
@@ -438,20 +437,13 @@ func namesDaemon(arg string) bool {
}
func anyNamesDaemon(args []string) bool {
for _, arg := range args {
if namesDaemon(arg) {
return true
}
}
return false
return slices.ContainsFunc(args, namesDaemon)
}
func hasAny(args []string, wanted ...string) bool {
for _, arg := range args {
for _, w := range wanted {
if arg == w {
return true
}
if slices.Contains(wanted, arg) {
return true
}
}
return false
+1 -1
View File
@@ -63,7 +63,7 @@ func Split(line string) []Segment {
}
runes := []rune(line)
for i := 0; i < len(runes); i++ {
for i := range runes {
r := runes[i]
if escaped {