Skip to content

Commit

Permalink
Update WordPress 'acorn' CLI subcommands
Browse files Browse the repository at this point in the history
Replace some existing subcommands with new ones to better align with application functionality and improve command clarity. This update enhances the command line interface by providing users with more intuitive and descriptive command options, helping streamline development and management tasks.
  • Loading branch information
eduwass committed Feb 11, 2025
1 parent 6a6e925 commit 2709625
Showing 1 changed file with 48 additions and 32 deletions.
80 changes: 48 additions & 32 deletions src/wp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,68 +186,84 @@ const completionSpec: Fig.Spec = {
description: "Acorn commands for WordPress",
subcommands: [
{
name: "clear-compiled",
description: "Remove the compiled class file",
name: "about",
description: "Display basic information about your application",
},
{
name: "completion",
description: "Dump the shell completion script",
name: "db",
description: "Start a new database CLI session",
},
{
name: "env",
description: "Display the current framework environment",
name: "migrate",
description: "Run the database migrations",
},
{
name: "help",
description: "Display help for a command",
name: "acorn:install",
description: "Install Acorn into the application",
},
{
name: "list",
description: "List commands",
name: "cache:clear",
description: "Flush the application cache",
},
{
name: "optimize",
description: "Cache the framework bootstrap files",
name: "cache:forget",
description: "Remove an item from the cache",
},
{
name: "db:seed",
description: "Seed the database with records",
},
{
name: "db:wipe",
description: "Drop all tables, views, and types",
},
{
name: "key:generate",
description: "Set the application key",
},
{
name: "make:middleware",
description: "Create a new middleware class",
},
{
name: "acorn-init",
description: "Initializes required paths in the base directory",
name: "make:migration",
description: "Create a new migration file",
},
{
name: "config:cache",
description: "Create a cache file for faster configuration loading",
name: "migrate:fresh",
description: "Drop all tables and re-run all migrations",
},
{
name: "config:clear",
description: "Remove the configuration cache file",
name: "migrate:install",
description: "Create the migration repository",
},
{
name: "optimize:clear",
description: "Remove the cached bootstrap files",
name: "migrate:refresh",
description: "Reset and re-run all migrations",
},
{
name: "make:command",
description: "Create a new Artisan command",
name: "migrate:reset",
description: "Rollback all database migrations",
},
{
name: "make:component",
description: "Create a new view component class",
name: "migrate:rollback",
description: "Rollback the last database migration",
},
{
name: "make:composer",
description: "Create a new view composer class",
name: "migrate:status",
description: "Show the status of each migration",
},
{
name: "make:provider",
description: "Create a new service provider class",
name: "route:cache",
description: "Create a route cache file for faster route registration",
},
{
name: "package:discover",
description: "Rebuild the cached package manifest",
name: "route:clear",
description: "Remove the route cache file",
},
{
name: "vendor:publish",
description: "Publish any publishable assets from vendor packages",
name: "route:list",
description: "List all registered routes",
},
{
name: "view:cache",
Expand Down

0 comments on commit 2709625

Please sign in to comment.