From 0ef12b4f553874949b8cd94941b2cbd2f7f2ffad Mon Sep 17 00:00:00 2001 From: Hugo Richard Date: Tue, 17 Sep 2024 22:49:06 +0200 Subject: [PATCH] Update shelve cli (#2453) --- src/shelve.ts | 46 +++++++++++----------------------------------- 1 file changed, 11 insertions(+), 35 deletions(-) diff --git a/src/shelve.ts b/src/shelve.ts index d66036179d5c..08cb68d3febc 100644 --- a/src/shelve.ts +++ b/src/shelve.ts @@ -1,6 +1,6 @@ const shelveSubcommands: Fig.Subcommand[] = [ { - name: ["create", "init", "c"], + name: ["create", "c", "init"], description: "Create a new project", icon: "🚀", options: [ @@ -13,29 +13,14 @@ const shelveSubcommands: Fig.Subcommand[] = [ }, ], }, - { - name: ["login", "li"], - description: "Authenticate with Shelve", - icon: "🔑", - }, - { - name: ["logout", "lo"], - description: "Logout the current authenticated user", - icon: "🔓", - }, - { - name: ["whoami", "w"], - description: "Shows the username of the currently logged-in user", - icon: "👤", - }, { name: ["pull", "pl"], - description: "Retrieve the environment variables from Shelve", + description: "Pull variables for specified environment to .env file", icon: "📥", options: [ { name: ["--env", "-e"], - description: "Retrieve the environment variables from Shelve", + description: "Specify the environment", args: { name: "environment", }, @@ -44,12 +29,12 @@ const shelveSubcommands: Fig.Subcommand[] = [ }, { name: ["push", "ps"], - description: "Send the environment variables to Shelve", + description: "Push variables for specified environment to Shelve", icon: "📤", options: [ { name: ["--env", "-e"], - description: "Send the environment variables to Shelve", + description: "Specify the environment", args: { name: "environment", }, @@ -57,23 +42,14 @@ const shelveSubcommands: Fig.Subcommand[] = [ ], }, { - name: ["link", "l"], - description: "Link the current directory with a Shelve project", - icon: "🔗", - options: [ - { - name: ["--name", "-n"], - description: "Name of the project", - args: { - name: "project-name", - }, - }, - ], + name: ["generate", "g"], + description: "Generate resources for a project", + icon: "🔄", }, { - name: ["unlink", "ul"], - description: "Unlink the current directory from a Shelve project", - icon: "🔗", + name: ["config", "cf"], + description: "Show the current configuration", + icon: "⚙️", }, { name: ["--help", "-h"],