← All procedures
env.list
The names of the environment variables, never the values of the secrets
CLI- Package
- @procedures/env · README
- Path
["env","list"]- CLI
mark env list- As data
{"$proc":["env","list"],"input":{}}- Tags
- env, secrets
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/env/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["env","list"], {});
console.log(JSON.stringify(result));From the command line
$ mark env list
As data, in a program
{ "$proc": ["env", "list"], "input": {} }Input
Output
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"prefix": {
"description": "Only the names that start with this text. The comparison ignores the case",
"type": "string",
"maxLength": 1024
},
"values": {
"description": "True: give the value of each variable that is not a secret (default false)",
"type": "boolean"
}
}
},
"output": {
"type": "object",
"properties": {
"variables": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"secret": {
"type": "boolean",
"description": "True when the name matches a pattern of secret names"
},
"value": {
"description": "The value: only with values: true, and never for a secret",
"type": "string"
}
},
"required": [
"name",
"secret"
],
"additionalProperties": false
},
"description": "The variables, sorted by name"
}
},
"required": [
"variables"
],
"additionalProperties": false
}
}