Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Feb 15, 2024
1 parent c27730f commit 8493419
Show file tree
Hide file tree
Showing 27 changed files with 127 additions and 13 deletions.
1 change: 1 addition & 0 deletions completers/fury_completer/cmd/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ var accountsCmd = &cobra.Command{

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

rootCmd.AddCommand(accountsCmd)
}
19 changes: 19 additions & 0 deletions completers/fury_completer/cmd/beta.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package cmd

import (
"github.com/rsteube/carapace"
"github.com/spf13/cobra"
)

var betaCmd = &cobra.Command{
Use: "beta",
Short: "Experimental features",
Hidden: true,
Run: func(cmd *cobra.Command, args []string) {},
}

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

rootCmd.AddCommand(betaCmd)
}
19 changes: 19 additions & 0 deletions completers/fury_completer/cmd/beta_backup.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package cmd

import (
"github.com/rsteube/carapace"
"github.com/spf13/cobra"
)

var beta_backupCmd = &cobra.Command{
Use: "backup DIR",
Short: "Save all files to a directory",
Run: func(cmd *cobra.Command, args []string) {},
}

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

beta_backupCmd.Flags().String("kind", "", "Filter to one kind of package")
betaCmd.AddCommand(beta_backupCmd)
}
18 changes: 18 additions & 0 deletions completers/fury_completer/cmd/beta_download.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package cmd

import (
"github.com/rsteube/carapace"
"github.com/spf13/cobra"
)

var beta_downloadCmd = &cobra.Command{
Use: "download PACKAGE@VERSION",
Short: "Download a package to the current directory",
Run: func(cmd *cobra.Command, args []string) {},
}

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

betaCmd.AddCommand(beta_downloadCmd)
}
1 change: 1 addition & 0 deletions completers/fury_completer/cmd/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ var gitCmd = &cobra.Command{

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

rootCmd.AddCommand(gitCmd)
}
3 changes: 2 additions & 1 deletion completers/fury_completer/cmd/git_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import (
)

var git_configCmd = &cobra.Command{
Use: "config",
Use: "config REPO",
Short: "Configure Git build",
Run: func(cmd *cobra.Command, args []string) {},
}

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

gitCmd.AddCommand(git_configCmd)
}
3 changes: 2 additions & 1 deletion completers/fury_completer/cmd/git_config_get.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import (
)

var git_config_getCmd = &cobra.Command{
Use: "get",
Use: "get REPO KEY",
Short: "Get Git build environment key",
Run: func(cmd *cobra.Command, args []string) {},
}

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

git_configCmd.AddCommand(git_config_getCmd)
}
3 changes: 2 additions & 1 deletion completers/fury_completer/cmd/git_config_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import (
)

var git_config_setCmd = &cobra.Command{
Use: "set",
Use: "set REPO KEY=VAL",
Short: "Set Git build environment key",
Run: func(cmd *cobra.Command, args []string) {},
}

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

git_configCmd.AddCommand(git_config_setCmd)
}
3 changes: 2 additions & 1 deletion completers/fury_completer/cmd/git_config_unset.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import (
)

var git_config_unsetCmd = &cobra.Command{
Use: "unset",
Use: "unset REPO KEY",
Short: "Remove Git build environment key",
Run: func(cmd *cobra.Command, args []string) {},
}

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

git_configCmd.AddCommand(git_config_unsetCmd)
}
3 changes: 2 additions & 1 deletion completers/fury_completer/cmd/git_destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ import (
)

var git_destroyCmd = &cobra.Command{
Use: "destroy",
Use: "destroy REPO",
Short: "Remove Git repository",
Aliases: []string{"reset"},
Run: func(cmd *cobra.Command, args []string) {},
}

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

git_destroyCmd.Flags().Bool("reset-only", false, "Reset repo without destroying")
gitCmd.AddCommand(git_destroyCmd)
}
1 change: 1 addition & 0 deletions completers/fury_completer/cmd/git_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ var git_listCmd = &cobra.Command{

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

gitCmd.AddCommand(git_listCmd)
}
3 changes: 2 additions & 1 deletion completers/fury_completer/cmd/git_rebuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import (
)

var git_rebuildCmd = &cobra.Command{
Use: "rebuild",
Use: "rebuild REPO",
Short: "Run the builder on the repo",
Run: func(cmd *cobra.Command, args []string) {},
}

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

git_rebuildCmd.Flags().StringP("revision", "r", "", "Revision")
gitCmd.AddCommand(git_rebuildCmd)
}
3 changes: 2 additions & 1 deletion completers/fury_completer/cmd/git_rename.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import (
)

var git_renameCmd = &cobra.Command{
Use: "rename",
Use: "rename REPO NEWNAME",
Short: "Rename a Git repository",
Run: func(cmd *cobra.Command, args []string) {},
}

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

gitCmd.AddCommand(git_renameCmd)
}
18 changes: 18 additions & 0 deletions completers/fury_completer/cmd/git_stack.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package cmd

import (
"github.com/rsteube/carapace"
"github.com/spf13/cobra"
)

var git_stackCmd = &cobra.Command{
Use: "stack REPO",
Short: "Configure Git stack",
Run: func(cmd *cobra.Command, args []string) {},
}

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

gitCmd.AddCommand(git_stackCmd)
}
18 changes: 18 additions & 0 deletions completers/fury_completer/cmd/git_stack_set.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package cmd

import (
"github.com/rsteube/carapace"
"github.com/spf13/cobra"
)

var git_stack_setCmd = &cobra.Command{
Use: "set REPO STACK",
Short: "Set Git stack for repo",
Run: func(cmd *cobra.Command, args []string) {},
}

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

git_stackCmd.AddCommand(git_stack_setCmd)
}
3 changes: 2 additions & 1 deletion completers/fury_completer/cmd/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import (
)

var helpCmd = &cobra.Command{
Use: "help",
Use: "help [command]",
Short: "Help about any command",
Run: func(cmd *cobra.Command, args []string) {},
}

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

rootCmd.AddCommand(helpCmd)
}
1 change: 1 addition & 0 deletions completers/fury_completer/cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ var loginCmd = &cobra.Command{

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

rootCmd.AddCommand(loginCmd)
}
1 change: 1 addition & 0 deletions completers/fury_completer/cmd/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ var logoutCmd = &cobra.Command{

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

rootCmd.AddCommand(logoutCmd)
}
1 change: 1 addition & 0 deletions completers/fury_completer/cmd/packages.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ var packagesCmd = &cobra.Command{

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

rootCmd.AddCommand(packagesCmd)
}
3 changes: 2 additions & 1 deletion completers/fury_completer/cmd/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import (
)

var pushCmd = &cobra.Command{
Use: "push",
Use: "push PACKAGE",
Short: "Upload a new version of a package",
Run: func(cmd *cobra.Command, args []string) {},
}

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

pushCmd.Flags().Bool("public", false, "Create as public package")
pushCmd.Flags().Bool("quiet", false, "Do not show progress bar")
rootCmd.AddCommand(pushCmd)
Expand Down
1 change: 1 addition & 0 deletions completers/fury_completer/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func Execute() error {

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

rootCmd.PersistentFlags().StringP("account", "a", "", "Current account username")
rootCmd.PersistentFlags().String("api-token", "", "Inline authentication token")
rootCmd.Flags().BoolP("help", "h", false, "help for fury")
Expand Down
1 change: 1 addition & 0 deletions completers/fury_completer/cmd/sharing.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ var sharingCmd = &cobra.Command{

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

rootCmd.AddCommand(sharingCmd)
}
3 changes: 2 additions & 1 deletion completers/fury_completer/cmd/sharing_add.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import (
)

var sharing_addCmd = &cobra.Command{
Use: "add",
Use: "add EMAIL",
Short: "Add a collaborator",
Run: func(cmd *cobra.Command, args []string) {},
}

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

sharing_addCmd.Flags().String("role", "", "Collaborator role")
sharingCmd.AddCommand(sharing_addCmd)
}
3 changes: 2 additions & 1 deletion completers/fury_completer/cmd/sharing_remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import (
)

var sharing_removeCmd = &cobra.Command{
Use: "remove",
Use: "remove EMAIL",
Short: "Remove a collaborator",
Run: func(cmd *cobra.Command, args []string) {},
}

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

sharingCmd.AddCommand(sharing_removeCmd)
}
3 changes: 2 additions & 1 deletion completers/fury_completer/cmd/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import (
)

var versionsCmd = &cobra.Command{
Use: "versions",
Use: "versions PACKAGE",
Short: "List versions for a package",
Run: func(cmd *cobra.Command, args []string) {},
}

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

rootCmd.AddCommand(versionsCmd)
}
1 change: 1 addition & 0 deletions completers/fury_completer/cmd/whoami.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ var whoamiCmd = &cobra.Command{

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

rootCmd.AddCommand(whoamiCmd)
}
3 changes: 2 additions & 1 deletion completers/fury_completer/cmd/yank.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import (
)

var yankCmd = &cobra.Command{
Use: "yank",
Use: "yank PACKAGE@VERSION",
Short: "Remove a package version",
Run: func(cmd *cobra.Command, args []string) {},
}

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

yankCmd.Flags().StringP("version", "v", "", "Version")
rootCmd.AddCommand(yankCmd)
}

0 comments on commit 8493419

Please sign in to comment.