-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2460 from carapace-sh/add-artisan
added artisan
- Loading branch information
Showing
237 changed files
with
11,989 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} |
Oops, something went wrong.