This repository has been archived on 2020-04-27. You can view files and clone it, but cannot push or open issues or pull requests.
cmd/xorm/driver.go

27 lines
518 B
Go

// Copyright 2017 The Xorm Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import "fmt"
var CmdDriver = &Command{
UsageLine: "driver",
Short: "list all supported drivers",
Long: `
list all supported drivers
`,
}
func init() {
CmdDriver.Run = runDriver
CmdDriver.Flags = map[string]bool{}
}
func runDriver(cmd *Command, args []string) {
for n, d := range supportedDrivers {
fmt.Println(n, "\t", d)
}
}