| { |
| "$schema": "http://json-schema.org/draft-07/schema#", |
| "$id": "https://json.schemastore.org/aliases.json", |
| "additionalProperties": false, |
| "description": "An alias of the current directory\nhttps://github.com/sebglazebrook/aliases#usage", |
| "patternProperties": { |
| "^[^ ]+$": { |
| "title": "alias", |
| "description": "An alias of the current directory\nhttps://github.com/sebglazebrook/aliases#usage", |
| "type": "object", |
| "required": ["command"], |
| "properties": { |
| "command": { |
| "title": "command", |
| "description": "A command of the current alias\nhttps://github.com/sebglazebrook/aliases#usage", |
| "type": "string", |
| "minLength": 1, |
| "examples": ["ls"] |
| }, |
| "confirm": { |
| "title": "confirm", |
| "description": "Whether to confirm a command execution of the current alias\nhttps://github.com/sebglazebrook/aliases#usage", |
| "type": "boolean", |
| "default": false |
| }, |
| "confirmation_message": { |
| "title": "confirmation message", |
| "description": "A confirmation message of the current alias\nhttps://github.com/sebglazebrook/aliases#usage", |
| "type": "string", |
| "minLength": 1, |
| "examples": ["Do you want to execute this command?"] |
| }, |
| "conditional": { |
| "title": "conditional", |
| "description": "A conditional of the current alias\nhttps://github.com/sebglazebrook/aliases#usage", |
| "type": "string", |
| "minLength": 1, |
| "examples": ["/bin/true"] |
| }, |
| "backout_seconds": { |
| "title": "backout seconds", |
| "description": "A backout of the current alias\nhttps://github.com/sebglazebrook/aliases#usage", |
| "type": "integer", |
| "minimum": 0 |
| }, |
| "unit_test": { |
| "title": "conditional", |
| "description": "A unit test of the current alias\nhttps://github.com/sebglazebrook/aliases#usage", |
| "type": "string", |
| "minLength": 1, |
| "examples": ["[ true = true ]"] |
| }, |
| "quiet": { |
| "title": "quiet", |
| "description": "Whether to display a command before execution of the current alias\nhttps://github.com/sebglazebrook/aliases#usage", |
| "type": "boolean", |
| "default": false |
| } |
| }, |
| "additionalProperties": false |
| } |
| }, |
| "title": "alias", |
| "type": "object" |
| } |
|
|