(cmd *cobra.Command)
| 52 | } |
| 53 | |
| 54 | func registerDumpFlags(cmd *cobra.Command) { |
| 55 | cmd.Flags().StringP(flagDump, "o", "", `quad file to dump the database to (".gz" supported, "-" for stdout)`) |
| 56 | var names []string |
| 57 | for _, f := range quad.Formats() { |
| 58 | if f.Writer != nil { |
| 59 | names = append(names, f.Name) |
| 60 | } |
| 61 | } |
| 62 | sort.Strings(names) |
| 63 | cmd.Flags().String(flagDumpFormat, "", `quad file format to use instead of auto-detection ("`+strings.Join(names, `", "`)+`")`) |
| 64 | } |
| 65 | |
| 66 | func NewInitDatabaseCmd() *cobra.Command { |
| 67 | cmd := &cobra.Command{ |
no test coverage detected