Skip to content

Commit

Permalink
Merge pull request #2460 from carapace-sh/add-artisan
Browse files Browse the repository at this point in the history
added artisan
  • Loading branch information
rsteube authored Jul 27, 2024
2 parents d9ec6e5 + b4c908c commit 9478978
Show file tree
Hide file tree
Showing 237 changed files with 11,989 additions and 0 deletions.
20 changes: 20 additions & 0 deletions completers/artisan_completer/cmd/about.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var aboutCmd = &cobra.Command{
Use: "about [--only [ONLY]] [--json]",
Short: "Display basic information about your application",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(aboutCmd).Standalone()

aboutCmd.Flags().Bool("json", false, "Output the information as JSON")
aboutCmd.Flags().String("only", "", "The section to display")
rootCmd.AddCommand(aboutCmd)
}
18 changes: 18 additions & 0 deletions completers/artisan_completer/cmd/authClearResets.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var authClearResetsCmd = &cobra.Command{
Use: "auth:clear-resets [<name>]",
Short: "Flush expired password reset tokens",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(authClearResetsCmd).Standalone()

rootCmd.AddCommand(authClearResetsCmd)
}
23 changes: 23 additions & 0 deletions completers/artisan_completer/cmd/breezeInstall.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var breezeInstallCmd = &cobra.Command{
Use: "breeze:install [--dark] [--pest] [--ssr] [--typescript] [--composer [COMPOSER]] [--] <stack>",
Short: "Install the Breeze controllers and resources",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(breezeInstallCmd).Standalone()

breezeInstallCmd.Flags().String("composer", "", "Absolute path to the Composer binary which should be used to install packages")
breezeInstallCmd.Flags().Bool("dark", false, "Indicate that dark mode support should be installed")
breezeInstallCmd.Flags().Bool("pest", false, "Indicate that Pest should be installed")
breezeInstallCmd.Flags().Bool("ssr", false, "Indicates if Inertia SSR support should be installed")
breezeInstallCmd.Flags().Bool("typescript", false, "Indicates if TypeScript is preferred for the Inertia stack")
rootCmd.AddCommand(breezeInstallCmd)
}
19 changes: 19 additions & 0 deletions completers/artisan_completer/cmd/cacheClear.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var cacheClearCmd = &cobra.Command{
Use: "cache:clear [--tags [TAGS]] [--] [<store>]",
Short: "Flush the application cache",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(cacheClearCmd).Standalone()

cacheClearCmd.Flags().String("tags", "", "The cache tags you would like to clear")
rootCmd.AddCommand(cacheClearCmd)
}
18 changes: 18 additions & 0 deletions completers/artisan_completer/cmd/cacheForget.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var cacheForgetCmd = &cobra.Command{
Use: "cache:forget <key> [<store>]",
Short: "Remove an item from the cache",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(cacheForgetCmd).Standalone()

rootCmd.AddCommand(cacheForgetCmd)
}
18 changes: 18 additions & 0 deletions completers/artisan_completer/cmd/cachePruneStaleTags.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var cachePruneStaleTagsCmd = &cobra.Command{
Use: "cache:prune-stale-tags [<store>]",
Short: "Prune stale cache tags from the cache (Redis only)",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(cachePruneStaleTagsCmd).Standalone()

rootCmd.AddCommand(cachePruneStaleTagsCmd)
}
21 changes: 21 additions & 0 deletions completers/artisan_completer/cmd/cashierWebhook.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var cashierWebhookCmd = &cobra.Command{
Use: "cashier:webhook [--disabled] [--url [URL]] [--api-version [API-VERSION]]",
Short: "Create the Stripe webhook to interact with Cashier.",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(cashierWebhookCmd).Standalone()

cashierWebhookCmd.Flags().String("api-version", "", "The Stripe API version the webhook should use")
cashierWebhookCmd.Flags().Bool("disabled", false, "Immediately disable the webhook after creation")
cashierWebhookCmd.Flags().String("url", "", "The URL endpoint for the webhook")
rootCmd.AddCommand(cashierWebhookCmd)
}
18 changes: 18 additions & 0 deletions completers/artisan_completer/cmd/channelList.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var channelListCmd = &cobra.Command{
Use: "channel:list",
Short: "List all registered private broadcast channels",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(channelListCmd).Standalone()

rootCmd.AddCommand(channelListCmd)
}
18 changes: 18 additions & 0 deletions completers/artisan_completer/cmd/clearCompiled.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var clearCompiledCmd = &cobra.Command{
Use: "clear-compiled",
Short: "Remove the compiled class file",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(clearCompiledCmd).Standalone()

rootCmd.AddCommand(clearCompiledCmd)
}
23 changes: 23 additions & 0 deletions completers/artisan_completer/cmd/complete.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var completeCmd = &cobra.Command{
Use: "_complete [-s|--shell SHELL] [-i|--input INPUT] [-c|--current CURRENT] [-a|--api-version API-VERSION] [-S|--symfony SYMFONY]",
Short: "Internal command to provide shell completion suggestions",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(completeCmd).Standalone()

completeCmd.Flags().String("api-version", "", "The API version of the completion script")
completeCmd.Flags().String("current", "", "The index of the \"input\" array that the cursor is in (e.g. COMP_CWORD)")
completeCmd.Flags().String("input", "", "An array of input tokens (e.g. COMP_WORDS or argv)")
completeCmd.Flags().String("shell", "", "The shell type (\"bash\", \"fish\", \"zsh\")")
completeCmd.Flags().String("symfony", "", "deprecated")
rootCmd.AddCommand(completeCmd)
}
19 changes: 19 additions & 0 deletions completers/artisan_completer/cmd/completion.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var completionCmd = &cobra.Command{
Use: "completion [--debug] [--] [<shell>]",
Short: "Dump the shell completion script",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(completionCmd).Standalone()

completionCmd.Flags().Bool("debug", false, "Tail the completion debug log")
rootCmd.AddCommand(completionCmd)
}
18 changes: 18 additions & 0 deletions completers/artisan_completer/cmd/configCache.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var configCacheCmd = &cobra.Command{
Use: "config:cache",
Short: "Create a cache file for faster configuration loading",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(configCacheCmd).Standalone()

rootCmd.AddCommand(configCacheCmd)
}
18 changes: 18 additions & 0 deletions completers/artisan_completer/cmd/configClear.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var configClearCmd = &cobra.Command{
Use: "config:clear",
Short: "Remove the configuration cache file",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(configClearCmd).Standalone()

rootCmd.AddCommand(configClearCmd)
}
20 changes: 20 additions & 0 deletions completers/artisan_completer/cmd/configPublish.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var configPublishCmd = &cobra.Command{
Use: "config:publish [--all] [--force] [--] [<name>]",
Short: "Publish configuration files to your application",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(configPublishCmd).Standalone()

configPublishCmd.Flags().Bool("all", false, "Publish all configuration files")
configPublishCmd.Flags().Bool("force", false, "Overwrite any existing configuration files")
rootCmd.AddCommand(configPublishCmd)
}
18 changes: 18 additions & 0 deletions completers/artisan_completer/cmd/configShow.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var configShowCmd = &cobra.Command{
Use: "config:show <config>",
Short: "Display all of the values for a given configuration file or key",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(configShowCmd).Standalone()

rootCmd.AddCommand(configShowCmd)
}
20 changes: 20 additions & 0 deletions completers/artisan_completer/cmd/db.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var dbCmd = &cobra.Command{
Use: "db [--read] [--write] [--] [<connection>]",
Short: "Start a new database CLI session",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(dbCmd).Standalone()

dbCmd.Flags().Bool("read", false, "Connect to the read connection")
dbCmd.Flags().Bool("write", false, "Connect to the write connection")
rootCmd.AddCommand(dbCmd)
}
20 changes: 20 additions & 0 deletions completers/artisan_completer/cmd/dbMonitor.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var dbMonitorCmd = &cobra.Command{
Use: "db:monitor [--databases [DATABASES]] [--max [MAX]]",
Short: "Monitor the number of connections on the specified database",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(dbMonitorCmd).Standalone()

dbMonitorCmd.Flags().String("databases", "", "The database connections to monitor")
dbMonitorCmd.Flags().String("max", "", "The maximum number of connections that can be open before an event is dispatched")
rootCmd.AddCommand(dbMonitorCmd)
}
21 changes: 21 additions & 0 deletions completers/artisan_completer/cmd/dbSeed.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var dbSeedCmd = &cobra.Command{
Use: "db:seed [--class [CLASS]] [--database [DATABASE]] [--force] [--] [<class>]",
Short: "Seed the database with records",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(dbSeedCmd).Standalone()

dbSeedCmd.Flags().String("class", "", "The class name of the root seeder")
dbSeedCmd.Flags().String("database", "", "The database connection to seed")
dbSeedCmd.Flags().Bool("force", false, "Force the operation to run when in production")
rootCmd.AddCommand(dbSeedCmd)
}
23 changes: 23 additions & 0 deletions completers/artisan_completer/cmd/dbShow.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var dbShowCmd = &cobra.Command{
Use: "db:show [--database [DATABASE]] [--json] [--counts] [--views] [--types]",
Short: "Display information about the given database",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(dbShowCmd).Standalone()

dbShowCmd.Flags().Bool("counts", false, "Show the table row count <bg=red;options=bold> Note: This can be slow on large databases </>")
dbShowCmd.Flags().String("database", "", "The database connection")
dbShowCmd.Flags().Bool("json", false, "Output the database information as JSON")
dbShowCmd.Flags().Bool("types", false, "Show the user defined types")
dbShowCmd.Flags().Bool("views", false, "Show the database views <bg=red;options=bold> Note: This can be slow on large databases </>")
rootCmd.AddCommand(dbShowCmd)
}
Loading

0 comments on commit 9478978

Please sign in to comment.