driver.go 518 B

1234567891011121314151617181920212223242526
  1. // Copyright 2017 The Xorm Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package main
  5. import "fmt"
  6. var CmdDriver = &Command{
  7. UsageLine: "driver",
  8. Short: "list all supported drivers",
  9. Long: `
  10. list all supported drivers
  11. `,
  12. }
  13. func init() {
  14. CmdDriver.Run = runDriver
  15. CmdDriver.Flags = map[string]bool{}
  16. }
  17. func runDriver(cmd *Command, args []string) {
  18. for n, d := range supportedDrivers {
  19. fmt.Println(n, "\t", d)
  20. }
  21. }