-
-
Notifications
You must be signed in to change notification settings - Fork 55
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 #1227 from rsteube/git-sparsecheckout
git: sparse-checkout
- Loading branch information
Showing
7 changed files
with
116 additions
and
17 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,18 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var sparseCheckoutCmd = &cobra.Command{ | ||
Use: "sparse-checkout", | ||
Short: "Initialize and modify the sparse-checkout", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(sparseCheckoutCmd).Standalone() | ||
|
||
rootCmd.AddCommand(sparseCheckoutCmd) | ||
} |
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,22 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var sparseCheckout_addCmd = &cobra.Command{ | ||
Use: "add", | ||
Short: "Add all files under SOME/DIR/ECTORY/ (at any depth) to the sparse checkout", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(sparseCheckout_addCmd).Standalone() | ||
|
||
sparseCheckoutCmd.AddCommand(sparseCheckout_addCmd) | ||
|
||
carapace.Gen(sparseCheckout_addCmd).PositionalAnyCompletion( | ||
carapace.ActionDirectories(), | ||
) | ||
} |
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/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var sparseCheckout_disableCmd = &cobra.Command{ | ||
Use: "disable", | ||
Short: "Repopulate the working directory with all files, disabling sparse checkouts", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(sparseCheckout_disableCmd).Standalone() | ||
|
||
sparseCheckoutCmd.AddCommand(sparseCheckout_disableCmd) | ||
} |
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/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var sparseCheckout_listCmd = &cobra.Command{ | ||
Use: "list", | ||
Short: "Describe the directories or patterns in the sparse-checkout file", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(sparseCheckout_listCmd).Standalone() | ||
|
||
sparseCheckoutCmd.AddCommand(sparseCheckout_listCmd) | ||
} |
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/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var sparseCheckout_reapplyCmd = &cobra.Command{ | ||
Use: "reapply", | ||
Short: "Reapply the existing sparse directory specifications", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(sparseCheckout_reapplyCmd).Standalone() | ||
|
||
sparseCheckoutCmd.AddCommand(sparseCheckout_reapplyCmd) | ||
} |
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,22 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var sparseCheckout_setCmd = &cobra.Command{ | ||
Use: "set", | ||
Short: "Enable the necessary sparse-checkout config settings", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(sparseCheckout_setCmd).Standalone() | ||
|
||
sparseCheckoutCmd.AddCommand(sparseCheckout_setCmd) | ||
|
||
carapace.Gen(sparseCheckout_setCmd).PositionalAnyCompletion( | ||
carapace.ActionDirectories(), | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.