diff --git a/.mise.toml b/mise.toml similarity index 94% rename from .mise.toml rename to mise.toml index a70e285..b31ed73 100644 --- a/.mise.toml +++ b/mise.toml @@ -1,5 +1,3 @@ -#:schema ./schema/mise.json - min_version = "2024.1.1" [env] _.file = [".env"] diff --git a/schema/mise.json b/schema/mise.json deleted file mode 100644 index a9d678d..0000000 --- a/schema/mise.json +++ /dev/null @@ -1,428 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://mise.jdx.dev/schema/mise.json", - "title": "mise", - "description": "config file for mise version manager (.mise.toml)", - "type": "object", - "additionalProperties": false, - "properties": { - "min_version": { - "description": "minimum version of mise required to use this config", - "type": "string", - "pattern": "^\\d+\\.\\d+\\.\\d+$" - }, - "env": { "$ref": "#/$defs/env" }, - "tools": { - "description": "dev tools to use", - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "type": "array", - "items": { "$ref": "#/$defs/tool" } - }, - { "$ref": "#/$defs/tool" } - ] - } - }, - "tasks": { - "description": "task runner tasks", - "type": "object", - "additionalProperties": { "$ref": "#/$defs/task" } - }, - "plugins": { - "description": "plugins to use", - "type": "object", - "additionalProperties": { - "description": "url to plugin repository", - "type": "string" - } - }, - "alias": { - "description": "custom shorthands for versions", - "type": "object", - "additionalProperties": { - "description": "plugin to set aliases for", - "type": "object", - "additionalProperties": { - "description": "version alias points to", - "type": "string" - } - } - }, - "settings": { - "description": "mise settings", - "type": "object", - "additionalProperties": false, - "$ref": "#/$defs/settings" - } - }, - "$defs": { - "env": { - "description": "environment variables", - "type": "object", - "properties": { - "_": { - "type": "object", - "description": "environment modules", - "properties": { - "file": { - "oneOf": [ - { "type": "string", "description": "dotenv file to load" }, - { - "type": "array", - "description": "dotenv files to load", - "items": { - "type": "string", - "description": "dotenv file to load" - } - } - ] - }, - "path": { - "oneOf": [ - { "type": "string", "description": "PATH entry to add" }, - { - "type": "array", - "description": "PATH entries to add", - "items": { - "type": "string", - "description": "PATH entry to add" - } - } - ] - }, - "source": { - "oneOf": [ - { "type": "string", "description": "bash script to load" }, - { - "type": "array", - "description": "bash scripts to load", - "items": { - "type": "string", - "description": "bash script to load" - } - } - ] - }, - "python": { - "type": "object", - "description": "python environment", - "properties": { - "venv": { - "oneOf": [ - { - "description": "path to python virtual environment to use", - "type": "string" - }, - { - "description": "virtualenv options", - "type": "object", - "required": ["path"], - "properties": { - "path": { - "description": "path to python virtual environment to use", - "type": "string" - }, - "create": { - "description": "create a new virtual environment if one does not exist", - "type": "boolean", - "default": false - } - } - } - ] - } - } - } - } - } - }, - "additionalProperties": { - "oneOf": [ - { "type": "string" }, - { "type": "number" }, - { "type": "boolean", "enum": [false] } - ] - } - }, - "tool": { - "oneOf": [ - { - "type": "string", - "description": "version of the tool to install" - }, - { - "type": "object", - "properties": { - "version": { - "description": "version of the tool to install", - "type": "string" - } - }, - "required": ["version"] - } - ] - }, - "task": { - "oneOf": [ - { - "type": "string", - "description": "script to run" - }, - { - "description": "script to run", - "type": "array", - "items": { - "description": "script to run", - "type": "string" - } - }, - { - "type": "object", - "properties": { - "run": { - "oneOf": [ - { - "description": "script to run", - "type": "string" - }, - { - "description": "script to run", - "type": "array", - "items": { - "description": "script to run", - "type": "string" - } - } - ] - }, - "description": { - "description": "description of task", - "type": "string" - }, - "depends": { - "description": "other tasks to run before this task", - "type": "array", - "items": { - "description": "task to run before this task", - "type": "string" - } - }, - "alias": { - "oneOf": [ - { - "description": "alias for this task", - "type": "string" - }, - { - "description": "alias for this task", - "type": "array", - "items": { - "description": "alias for this task", - "type": "string" - } - } - ] - }, - "dir": { - "description": "directory to run script in, default is current working directory", - "type": "string" - }, - "env": { - "description": "environment variables", - "type": "object", - "additionalProperties": { - "oneOf": [ - { "type": "string" }, - { "type": "number" }, - { "type": "boolean", "enum": [false] } - ] - } - }, - "hide": { - "description": "do not display this task", - "type": "boolean" - }, - "quiet": { - "description": "do not display mise information for this task", - "type": "boolean" - }, - "raw": { - "description": "directly connect task to stdin/stdout/stderr", - "type": "boolean" - }, - "sources": { - "description": "files that this task depends on", - "type": "array", - "items": { - "description": "glob pattern or path to files that this task depends on", - "type": "string" - } - }, - "outputs": { - "description": "files created by this task", - "type": "array", - "items": { - "description": "glob pattern or path to files created by this task", - "type": "string" - } - } - }, - "additionalProperties": false - } - ] - }, - "settings": { - "properties": { - "activate_aggressive": { - "description": "push tools to the front of PATH instead of allowing modifications of PATH after activation to take precedence", - "type": "boolean" - }, - "all_compile": { - "description": "do not use precompiled binaries for any tool", - "type": "boolean" - }, - "always_keep_download": { - "description": "should mise keep downloaded files after installation", - "type": "boolean" - }, - "always_keep_install": { - "description": "should mise keep install files after installation even if the installation fails", - "type": "boolean" - }, - "asdf_compat": { - "description": "set to true to ensure .tool-versions will be compatible with asdf", - "type": "boolean" - }, - "cargo_binstall": { - "description": "use cargo-binstall to install rust tools if available", - "type": "boolean", - "default": true - }, - "color": { - "description": "colorize output", - "type": "boolean", - "default": true - }, - "disable_default_shorthands": { - "description": "disables built-in shorthands", - "type": "boolean" - }, - "disable_tools": { - "description": "tools that should not be used", - "items": { - "description": "tool name", - "type": "string" - }, - "type": "array" - }, - "experimental": { - "description": "enable experimental features", - "type": "boolean" - }, - "jobs": { - "description": "number of tools to install in parallel, default is 4", - "type": "integer" - }, - "legacy_version_file": { - "description": "should mise parse legacy version files (e.g. .node-version)", - "type": "boolean" - }, - "legacy_version_file_disable_tools": { - "description": "tools that should not have their legacy version files parsed", - "items": { - "description": "tool name", - "type": "string" - }, - "type": "array" - }, - "libgit2": { - "description": "use libgit2 for git operations", - "type": "boolean", - "default": true - }, - "node_compile": { - "description": "do not use precompiled binaries for node", - "type": "boolean" - }, - "not_found_auto_install": { - "description": "adds a shell hook to `mise activate` and shims to automatically install tools when they need to be installed", - "type": "boolean", - "default": true - }, - "paranoid": { - "description": "extra-security mode, see https://mise.jdx.dev/paranoid.html for details", - "type": "boolean" - }, - "plugin_autoupdate_last_check_duration": { - "description": "how often to check for plugin updates", - "type": "string" - }, - "python_compile": { - "description": "do not use precompiled binaries for python", - "type": "boolean" - }, - "python_venv_auto_create": { - "description": "automatically create a virtualenv for python tools", - "type": "boolean" - }, - "raw": { - "description": "directly connect plugin scripts to stdin/stdout, implies --jobs=1", - "type": "boolean" - }, - "shorthands_file": { - "description": "path to file containing shorthand mappings", - "type": "string" - }, - "status": { - "description": "configure messages displayed when changing directories or executing tools", - "type": "object", - "additionalProperties": false, - "properties": { - "missing_tools": { - "description": "display warning when a tool is not installed", - "type": "string", - "enum": ["if_other_versions_installed", "always", "never"], - "default": "if_other_versions_installed" - }, - "show_env": { - "description": "display configured mise environment variables", - "type": "boolean" - }, - "show_tools": { - "description": "display active tools", - "type": "boolean" - } - } - }, - "task_output": { - "default": "prefix", - "description": "how to display task output", - "enum": ["prefix", "interleave"], - "type": "string" - }, - "trusted_config_paths": { - "description": "config files with these prefixes will be trusted by default", - "items": { - "description": "a path to add to PATH", - "type": "string" - }, - "type": "array" - }, - "quiet": { - "description": "suppress all non-error output", - "type": "boolean" - }, - "verbose": { - "description": "display extra output", - "type": "boolean" - }, - "yes": { - "description": "assume yes for all prompts", - "type": "boolean" - } - } - } - } -}