Install shared authoring skill and add retained drafts browser

This commit is contained in:
2026-10-09 01:33:59 +01:00
parent 94a76f9c5c
commit 998b0941d3
28 changed files with 787 additions and 520 deletions
+13
View File
@@ -4,6 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
"git.a-wan.net/alan/pipelines/internal/author"
"git.a-wan.net/alan/pipelines/internal/cli"
"git.a-wan.net/alan/pipelines/internal/installation"
"os"
@@ -18,6 +19,18 @@ func main() {
app := cli.App{Out: os.Stdout, Err: os.Stderr, In: os.Stdin}
args := os.Args[1:]
executable, err := os.Executable()
if len(args) > 0 && args[0] == "skill" {
if len(args) == 2 && args[1] == "install" {
var dir string
dir, err = author.InstallSkill()
if err == nil {
fmt.Println("Installed skill:", dir)
return
}
} else {
err = fmt.Errorf("usage: pipelines skill install")
}
}
if err == nil && len(args) > 0 && args[0] == "service" {
err = installation.ServiceCommand(ctx, executable, args[1:], os.Stdout, os.Stderr)
if err == nil {