Update core components including CLI, Nushell libraries, plugins system, and utility scripts for the provisioning system. CLI Updates: - Command implementations - CLI utilities and dispatching - Help system improvements - Command validation Library Updates: - Configuration management system - Infrastructure validation - Extension system improvements - Secrets management - Workspace operations - Cache management system Plugin System: - Interactive form plugin (inquire) - KCL integration plugin - Performance optimization plugins - Plugin registration system Utilities: - Build and distribution scripts - Installation procedures - Testing utilities - Development tools Documentation: - Library module documentation - Extension API guides - Plugin usage guides - Service management documentation All changes are backward compatible. No breaking changes.
74 lines
2.0 KiB
Django/Jinja
74 lines
2.0 KiB
Django/Jinja
{%- macro form_input(name, label, value="", required=false, help="") -%}
|
|
[items."{{ name }}"]
|
|
type = "text"
|
|
prompt = "{{ label }}"
|
|
default = "{{ value }}"
|
|
{% if help %}help = "{{ help }}"
|
|
{% endif %}{% if required %}required = true
|
|
{% endif %}
|
|
{%- endmacro -%}
|
|
|
|
{%- macro form_select(name, label, options=[], value="", help="") -%}
|
|
[items."{{ name }}"]
|
|
type = "select"
|
|
prompt = "{{ label }}"
|
|
options = [{% for opt in options %}"{{ opt }}"{{ "," if not loop.last }}{% endfor %}]
|
|
default = "{{ value }}"
|
|
{% if help %}help = "{{ help }}"
|
|
{% endif %}
|
|
{%- endmacro -%}
|
|
|
|
{%- macro form_confirm(name, label, help="") -%}
|
|
[items."{{ name }}"]
|
|
type = "confirm"
|
|
prompt = "{{ label }}"
|
|
{% if help %}help = "{{ help }}"
|
|
{% endif %}
|
|
{%- endmacro -%}
|
|
|
|
# Auto-generated form for settings update
|
|
# Generated: {{ now_iso }}
|
|
# Config source: {{ config_source }}
|
|
|
|
[meta]
|
|
title = "Provisioning Settings Update"
|
|
description = "Update provisioning configuration settings"
|
|
allow_cancel = true
|
|
|
|
[items.editor]
|
|
type = "text"
|
|
prompt = "Preferred Editor"
|
|
default = "{{ editor | default('vim') }}"
|
|
help = "Editor to use for file editing (vim, nano, emacs)"
|
|
|
|
[items.output_format]
|
|
type = "select"
|
|
prompt = "Default Output Format"
|
|
options = ["json", "yaml", "text", "table"]
|
|
default = "{{ output_format | default('yaml') }}"
|
|
help = "Default output format for commands"
|
|
|
|
[items.confirm_delete]
|
|
type = "confirm"
|
|
prompt = "Confirm Destructive Operations?"
|
|
help = "Require confirmation before deleting resources"
|
|
|
|
[items.confirm_deploy]
|
|
type = "confirm"
|
|
prompt = "Confirm Deployments?"
|
|
help = "Require confirmation before deploying"
|
|
|
|
[items.default_log_level]
|
|
type = "select"
|
|
prompt = "Default Log Level"
|
|
options = ["debug", "info", "warning", "error"]
|
|
default = "{{ default_log_level | default('info') }}"
|
|
help = "Default logging level"
|
|
|
|
[items.preferred_provider]
|
|
type = "select"
|
|
prompt = "Preferred Cloud Provider"
|
|
options = ["upcloud", "aws", "local"]
|
|
default = "{{ preferred_provider | default('upcloud') }}"
|
|
help = "Preferred infrastructure provider"
|