Install shared authoring skill and add retained drafts browser
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user