Written to: 5 requirements: 5 proved, 0 partly, 0 failing, 0 with no test recorded. 0047-arcactl-init FR-011, 0047-arcactl-init FR-012, 0047-arcactl-init FR-013, 0047-arcactl-init FR-014, 0047-arcactl-init FR-015
arcactl init (commons data 0047-arcactl-init FR-011 to FR-015): sets up a person's workstation, the DBA's or the developer's, and no database. It finds the instances the person can reach and looks at each, makes the one they choose their default (its service, its password in .pgpass, the prompt and helpers of psql, the script arcactl shell prints in the profile of their shell), shows every change and makes it only when agreed, and ends by running the checks of the workstation. Run again it changes nothing; --undo takes away what it put in. It is for a person at a terminal: the server model refuses it.
Source: commons/data/sql/cli/init.ts
0 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.
InitIointerfaceno test imports itinterface InitIo
What init is given besides its arguments.
| Member | Type | What it is |
|---|
env | Readonly<Record<string, string | undefined>> | |
platform | Platform | |
cwd | string | |
tty | boolean | |
prompt? | Prompter | |
stdin? | (() => Promise<string>) | Reads standard input to its end, for --password-stdin. |
connect? | ((o: ConnectOptions) => Promise<Connection>) | |
psqlVersion? | (() => string | undefined) | |
runInitfunctionno test imports itfunction runInit(argv: readonly string[], io: InitIo): Promise<Outcome>