From b5a4faa79b69768b262f97ada79b61421b9d6d42 Mon Sep 17 00:00:00 2001 From: trivernis Date: Tue, 11 Apr 2023 12:00:57 +0200 Subject: [PATCH] Update registered nu plugin --- private_dot_config/nushell/plugin.nu | 118 ++++++++++++++++----------- 1 file changed, 69 insertions(+), 49 deletions(-) diff --git a/private_dot_config/nushell/plugin.nu b/private_dot_config/nushell/plugin.nu index 54f26eb..4476a96 100644 --- a/private_dot_config/nushell/plugin.nu +++ b/private_dot_config/nushell/plugin.nu @@ -100,11 +100,21 @@ register /home/trivernis/.cargo/bin/nu_plugin_dialog { register /home/trivernis/.cargo/bin/nu_plugin_dialog { "sig": { - "name": "ask password", - "usage": "Prompt the user with a password input.", + "name": "ask multiselect", + "usage": "Prompt the user with a selection prompt.", "extra_usage": "", "search_terms": [], - "required_positional": [], + "required_positional": [ + { + "name": "items", + "desc": "The items out of which one can be selected.", + "shape": { + "List": "String" + }, + "var_id": null, + "default_value": null + } + ], "optional_positional": [], "rest_positional": null, "vectorizes_over_list": false, @@ -119,29 +129,29 @@ register /home/trivernis/.cargo/bin/nu_plugin_dialog { "default_value": null }, { - "long": "prompt", + "long": "abortable", "short": null, - "arg": "String", + "arg": null, "required": false, - "desc": "The prompt to this password input", + "desc": "If set users can abort the prompt.", "var_id": null, "default_value": null }, { - "long": "confirm", + "long": "prompt", "short": null, - "arg": null, + "arg": "String", "required": false, - "desc": "Prompts the user twice for matching password inputs", + "desc": "An optional prompt that can be shown to the user for the selection.", "var_id": null, "default_value": null }, { - "long": "allow-empty", + "long": "default", "short": null, - "arg": null, + "arg": "String", "required": false, - "desc": "Allows the user to input an empty password", + "desc": "The default selections as a comma separated string of indices", "var_id": null, "default_value": null } @@ -160,21 +170,11 @@ register /home/trivernis/.cargo/bin/nu_plugin_dialog { register /home/trivernis/.cargo/bin/nu_plugin_dialog { "sig": { - "name": "ask select", - "usage": "Prompt the user with a selection prompt.", + "name": "ask password", + "usage": "Prompt the user with a password input.", "extra_usage": "", "search_terms": [], - "required_positional": [ - { - "name": "items", - "desc": "The items out of which one can be selected.", - "shape": { - "List": "String" - }, - "var_id": null, - "default_value": null - } - ], + "required_positional": [], "optional_positional": [], "rest_positional": null, "vectorizes_over_list": false, @@ -189,38 +189,29 @@ register /home/trivernis/.cargo/bin/nu_plugin_dialog { "default_value": null }, { - "long": "fuzzy", + "long": "prompt", "short": null, - "arg": null, + "arg": "String", "required": false, - "desc": "To add a fuzzy search to the select.", + "desc": "The prompt to this password input", "var_id": null, "default_value": null }, { - "long": "abortable", + "long": "confirm", "short": null, "arg": null, "required": false, - "desc": "If set users can abort the prompt.", - "var_id": null, - "default_value": null - }, - { - "long": "prompt", - "short": null, - "arg": "String", - "required": false, - "desc": "An optional prompt that can be shown to the user for the selection.", + "desc": "Prompts the user twice for matching password inputs", "var_id": null, "default_value": null }, { - "long": "default", + "long": "allow-empty", "short": null, - "arg": "Number", + "arg": null, "required": false, - "desc": "The default selection.", + "desc": "Allows the user to input an empty password", "var_id": null, "default_value": null } @@ -237,17 +228,19 @@ register /home/trivernis/.cargo/bin/nu_plugin_dialog { "examples": [] } -register /home/trivernis/Documents/Programming/nu_plugin_dialog/target/debug/nu_plugin_dialog { +register /home/trivernis/.cargo/bin/nu_plugin_dialog { "sig": { - "name": "confirm", - "usage": "Prompt the user with a confirmation prompt.", + "name": "ask select", + "usage": "Prompt the user with a selection prompt.", "extra_usage": "", "search_terms": [], "required_positional": [ { - "name": "prompt", - "desc": "The question to ask the user.", - "shape": "String", + "name": "items", + "desc": "The items out of which one can be selected.", + "shape": { + "List": "String" + }, "var_id": null, "default_value": null } @@ -265,10 +258,37 @@ register /home/trivernis/Documents/Programming/nu_plugin_dialog/target/debug/nu_ "var_id": null, "default_value": null }, + { + "long": "fuzzy", + "short": null, + "arg": null, + "required": false, + "desc": "To add a fuzzy search to the select.", + "var_id": null, + "default_value": null + }, + { + "long": "abortable", + "short": null, + "arg": null, + "required": false, + "desc": "If set users can abort the prompt.", + "var_id": null, + "default_value": null + }, + { + "long": "prompt", + "short": null, + "arg": "String", + "required": false, + "desc": "An optional prompt that can be shown to the user for the selection.", + "var_id": null, + "default_value": null + }, { "long": "default", "short": null, - "arg": "Boolean", + "arg": "Number", "required": false, "desc": "The default selection.", "var_id": null,