-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ability to export selected keys
- Loading branch information
Showing
9 changed files
with
117 additions
and
79 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,33 @@ | ||
package cmd | ||
|
||
import ( | ||
"log" | ||
|
||
"github.com/spf13/cobra" | ||
) | ||
|
||
var ( | ||
importFormat string | ||
inputFile string | ||
|
||
importCmd = &cobra.Command{ | ||
Use: "import", | ||
Short: "Imports all configuration from a file", | ||
RunE: importE, | ||
Example: `TODO: import command example`, | ||
} | ||
) | ||
|
||
func init() { | ||
importCmd.Flags().StringVarP(&importFormat, "format", "f", "json", "input format (json, yaml, dotenv)") | ||
importCmd.Flags().StringVarP(&inputFile, "input-file", "i", "", "input file") | ||
importCmd.MarkFlagRequired("input-file") | ||
importCmd.MarkFlagFilename("input-file") | ||
|
||
rootCmd.AddCommand(importCmd) | ||
} | ||
|
||
func importE(cmd *cobra.Command, args []string) error { | ||
log.Fatalf("not implemented") | ||
return nil | ||
} |
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
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
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