Extended tentacle capabilities a bit.
This commit is contained in:
1 parent
d7b1efeba0
commit
1d75168807
44 files changed
+2874
-88
No files matched your search
@@ -28,6 +28,7 @@ func run() (runError error) {
|
||||
cgroupParent := options.String("cgroup-parent", "", "delegated cgroup v2 parent for resource containment")
|
||||
presentation := options.Bool("presentation", false, "grant command speech/braille result capability (prints JSON only)")
|
||||
interactive := options.Bool("interaction", false, "grant internal form/clipboard/focused-item capability (prints initial JSON only)")
|
||||
readerSettings := options.Bool("reader-settings", false, "grant declarative reader settings capability (prints initial JSON only; does not modify a reader)")
|
||||
command := options.String("command", "echo", "registered command to invoke")
|
||||
if err := options.Parse(os.Args[1:]); err != nil {
|
||||
return err
|
||||
@@ -52,7 +53,7 @@ func run() (runError error) {
|
||||
}()
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
|
||||
defer cancel()
|
||||
session, err := manager.Start(ctx, tentacle.Spec{ID: "local-example", Program: options.Args(), Presentation: *presentation, Interaction: *interactive})
|
||||
session, err := manager.Start(ctx, tentacle.Spec{ID: "local-example", Program: options.Args(), Presentation: *presentation, Interaction: *interactive, ReaderSettings: *readerSettings})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user