mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 10:58:10 +00:00
feat(cli): name the Orca that owns a workspace 'server'
orca server ... replaces orca environment ... and orca host name; --server and --parent-server replace --environment and --parent-environment. Old spellings stay accepted as input only: help, suggestions, errors and printed commands use the new names, and giving both spellings different values is invalid_argument. --host is still parsed but leaves help; orca host list/rm are hidden. Listings name each row's owning server (server: / server=) from data already returned, mapping a stored owner to a saved-server name only from this computer's own store, and print server=unknown instead of guessing local. The ports footer and search hits drop host=. CLI-built JSON uses server keys (server, address.server, parent.server, unknown-server, servers, knownServers, status target kind server). create/set print the same parent line as ps.
This commit is contained in:
@@ -1,31 +1,31 @@
|
||||
import type { HandlerGroup } from './handler-group-manifest'
|
||||
|
||||
// The machines Orca reaches: saved hosts and paired environments, the Orca servers it manages on
|
||||
// them, and recipe VMs.
|
||||
// The Orca servers this computer reaches: saved servers, the servers it manages over SSH, its SSH
|
||||
// connections, and recipe VMs.
|
||||
export const HOST_HANDLER_GROUPS: readonly HandlerGroup[] = [
|
||||
{
|
||||
name: 'environment',
|
||||
keys: [
|
||||
'host name',
|
||||
'server name',
|
||||
'host list',
|
||||
'host rm',
|
||||
'environment add',
|
||||
'environment list',
|
||||
'environment show',
|
||||
'environment rm'
|
||||
'server add',
|
||||
'server list',
|
||||
'server show',
|
||||
'server rm'
|
||||
],
|
||||
load: async () => (await import('./handlers/environment.js')).ENVIRONMENT_HANDLERS
|
||||
},
|
||||
{
|
||||
name: 'managed-server',
|
||||
keys: [
|
||||
'environment status',
|
||||
'environment update',
|
||||
'environment rollback',
|
||||
'environment recover',
|
||||
'environment stop',
|
||||
'environment cancel-stop',
|
||||
'environment forget'
|
||||
'server status',
|
||||
'server update',
|
||||
'server rollback',
|
||||
'server recover',
|
||||
'server stop',
|
||||
'server cancel-stop',
|
||||
'server forget'
|
||||
],
|
||||
load: async () => (await import('./handlers/managed-server.js')).MANAGED_SERVER_HANDLERS
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user