-
-
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.
- Fixed nix completer `builders` and `substituters` flags not being StringArray
- Loading branch information
Showing
13 changed files
with
522 additions
and
2 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
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 bootCmd = &cobra.Command{ | ||
Use: "boot", | ||
Short: "Build the new configuration and make it the boot default, but do not activate it", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(bootCmd).Standalone() | ||
|
||
addFlags(bootCmd) | ||
|
||
rootCmd.AddCommand(bootCmd) | ||
} |
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 buildCmd = &cobra.Command{ | ||
Use: "build", | ||
Short: "build the new configuration without activating it or adding it to the boot menu", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(buildCmd).Standalone() | ||
|
||
addFlags(buildCmd) | ||
|
||
rootCmd.AddCommand(buildCmd) | ||
} |
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 build_vmCmd = &cobra.Command{ | ||
Use: "build-vm", | ||
Short: "Build a script that starts a NixOS virtual machine with the configuration", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(build_vmCmd).Standalone() | ||
|
||
addFlags(build_vmCmd) | ||
|
||
rootCmd.AddCommand(build_vmCmd) | ||
} |
20 changes: 20 additions & 0 deletions
20
completers/nixos-rebuild_completer/cmd/build_vm_with_bootloader.go
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 build_vm_with_bootloaderCmd = &cobra.Command{ | ||
Use: "build-vm-with-bootloader", | ||
Short: "Like build-vm, but boots with the regular bootloader of your configuration", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(build_vm_with_bootloaderCmd).Standalone() | ||
|
||
addFlags(build_vm_with_bootloaderCmd) | ||
|
||
rootCmd.AddCommand(build_vm_with_bootloaderCmd) | ||
} |
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 dry_activateCmd = &cobra.Command{ | ||
Use: "dry-activate", | ||
Short: "Build the new configuration, but show what changes would occur on activation instead of activating the configuration", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(dry_activateCmd).Standalone() | ||
|
||
addFlags(dry_activateCmd) | ||
|
||
rootCmd.AddCommand(dry_activateCmd) | ||
} |
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 dry_buildCmd = &cobra.Command{ | ||
Use: "dry-build", | ||
Short: "Show what store paths would be built or downloaded, but otherwise do nothing", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(dry_buildCmd).Standalone() | ||
|
||
addFlags(dry_buildCmd) | ||
|
||
rootCmd.AddCommand(dry_buildCmd) | ||
} |
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 editCmd = &cobra.Command{ | ||
Use: "edit", | ||
Short: "Opens configuration.nix in the default editor", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(editCmd).Standalone() | ||
|
||
addFlags(editCmd) | ||
|
||
rootCmd.AddCommand(editCmd) | ||
} |
22 changes: 22 additions & 0 deletions
22
completers/nixos-rebuild_completer/cmd/list_generations.go
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/carapace-sh/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var list_generationsCmd = &cobra.Command{ | ||
Use: "list-generations", | ||
Short: "List the available generations", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(list_generationsCmd).Standalone() | ||
|
||
list_generationsCmd.Flags().Bool("json", false, "Output in JSON") | ||
|
||
addFlags(list_generationsCmd) | ||
|
||
rootCmd.AddCommand(list_generationsCmd) | ||
} |
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 replCmd = &cobra.Command{ | ||
Use: "repl", | ||
Short: "Open the configuration in `nix repl`", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(replCmd).Standalone() | ||
|
||
addFlags(replCmd) | ||
|
||
rootCmd.AddCommand(replCmd) | ||
} |
Oops, something went wrong.