Ivan Pilat | 4ae5581 | 2015-07-14 22:02:59 -0700 | [diff] [blame] | 1 | // Copyright 2015 The Vanadium 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 | |
| 5 | // Antimony (sb51) - Syncbase general-purpose client and management utility. |
| 6 | // Currently supports SyncQL select queries. |
| 7 | |
| 8 | package main |
| 9 | |
| 10 | import ( |
| 11 | "flag" |
| 12 | |
| 13 | "v.io/x/lib/cmdline" |
| 14 | _ "v.io/x/ref/runtime/factories/generic" |
| 15 | ) |
| 16 | |
| 17 | func main() { |
| 18 | cmdline.Main(cmdSb51) |
| 19 | } |
| 20 | |
| 21 | var cmdSb51 = &cmdline.Command{ |
| 22 | Name: "sb51", |
| 23 | Short: "Antimony - Vanadium Syncbase client and management utility", |
| 24 | Long: ` |
| 25 | Syncbase general-purpose client and management utility. |
| 26 | Currently supports starting a SyncQL shell. |
| 27 | `, |
| 28 | Children: []*cmdline.Command{cmdSbShell}, |
| 29 | } |
| 30 | |
| 31 | var ( |
| 32 | // TODO(ivanpi): Decide on convention for local syncbase service name. |
| 33 | flagSbService = flag.String("service", "/:8101/syncbase", "Location of the Syncbase service to connect to. Can be absolute or relative to the namespace root.") |
| 34 | ) |