Skip to content

Commit

Permalink
Update shelve cli (#2453)
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoRCD authored Sep 17, 2024
1 parent 1fe8e7a commit 0ef12b4
Showing 1 changed file with 11 additions and 35 deletions.
46 changes: 11 additions & 35 deletions src/shelve.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const shelveSubcommands: Fig.Subcommand[] = [
{
name: ["create", "init", "c"],
name: ["create", "c", "init"],
description: "Create a new project",
icon: "🚀",
options: [
Expand All @@ -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",
},
Expand All @@ -44,36 +29,27 @@ 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",
},
},
],
},
{
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"],
Expand Down

0 comments on commit 0ef12b4

Please sign in to comment.