From 2f186d20ef4fd6c9f6756353a6d1c53de3104a34 Mon Sep 17 00:00:00 2001 From: Virgil Date: Fri, 3 Apr 2026 06:53:25 +0000 Subject: [PATCH] Align workspace docs with AX examples --- workspace/service.go | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/workspace/service.go b/workspace/service.go index 64a5d69..d66ec97 100644 --- a/workspace/service.go +++ b/workspace/service.go @@ -12,11 +12,7 @@ import ( "dappco.re/go/core/io/sigil" ) -// Example: service, _ := workspace.New(workspace.Options{ -// Example: KeyPairProvider: keyPairProvider, -// Example: RootPath: "/srv/workspaces", -// Example: Medium: io.NewMemoryMedium(), -// Example: }) +// Example: service, _ := workspace.New(workspace.Options{KeyPairProvider: keyPairProvider}) type Workspace interface { CreateWorkspace(identifier, passphrase string) (string, error) SwitchWorkspace(workspaceID string) error @@ -52,16 +48,11 @@ type Options struct { KeyPairProvider KeyPairProvider RootPath string Medium io.Medium - // Core is the optional Core instance. When set, the workspace service - // auto-registers as an IPC listener for workspace.create and workspace.switch events. + // Example: service, _ := workspace.New(workspace.Options{Core: core.New()}) Core *core.Core } -// Example: service, _ := workspace.New(workspace.Options{ -// Example: KeyPairProvider: keyPairProvider, -// Example: RootPath: "/srv/workspaces", -// Example: Medium: io.NewMemoryMedium(), -// Example: }) +// Example: service, _ := workspace.New(workspace.Options{KeyPairProvider: keyPairProvider}) type Service struct { keyPairProvider KeyPairProvider activeWorkspaceID string