From 4c2f7d11b53cb8eced83b22ccc3c31bb45fd74cd Mon Sep 17 00:00:00 2001 From: kernel_loophole Date: Mon, 20 Jan 2025 11:33:36 +0500 Subject: [PATCH 1/3] Adds info docs string in cli --- src/_nebari/subcommands/info.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/_nebari/subcommands/info.py b/src/_nebari/subcommands/info.py index 340ff9d26a..3f5999e300 100644 --- a/src/_nebari/subcommands/info.py +++ b/src/_nebari/subcommands/info.py @@ -14,6 +14,9 @@ def nebari_subcommand(cli: typer.Typer): @cli.command() def info(ctx: typer.Context): + """ + Display information about installed Nebari plugins and their configurations. + """ from nebari.plugins import nebari_plugin_manager rich.print(f"Nebari version: {__version__}") From 69a6bb7907ac4c6c87c80ea32e2a08a1e6203449 Mon Sep 17 00:00:00 2001 From: kernel_loophole Date: Mon, 20 Jan 2025 13:00:08 +0500 Subject: [PATCH 2/3] Order Nebari commands --- src/_nebari/cli.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/_nebari/cli.py b/src/_nebari/cli.py index 5faec322e7..050c44fb80 100644 --- a/src/_nebari/cli.py +++ b/src/_nebari/cli.py @@ -1,8 +1,6 @@ import typing - import typer from typer.core import TyperGroup - from _nebari.version import __version__ from nebari.plugins import nebari_plugin_manager @@ -10,7 +8,7 @@ class OrderCommands(TyperGroup): def list_commands(self, ctx: typer.Context): """Return list of commands in the order appear.""" - return list(self.commands) + return list(self.commands)[::-1] def version_callback(value: bool): From b7d85016d017f6911d3668851df60c25de4a0721 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 15:58:46 +0000 Subject: [PATCH 3/3] [pre-commit.ci] Apply automatic pre-commit fixes --- src/_nebari/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/_nebari/cli.py b/src/_nebari/cli.py index 050c44fb80..6bf030ae26 100644 --- a/src/_nebari/cli.py +++ b/src/_nebari/cli.py @@ -1,6 +1,8 @@ import typing + import typer from typer.core import TyperGroup + from _nebari.version import __version__ from nebari.plugins import nebari_plugin_manager