| // Copyright 2015 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| func ping(args []string) error { |
| fs := flag.NewFlagSet("ping", flag.ContinueOnError) |
| fmt.Fprintln(os.Stderr, "ping usage: gomote ping [--status] <instance>") |
| fs.BoolVar(&status, "status", false, "print buildlet status") |
| bc, err := remoteClient(name) |
| ctx := context.Background() |
| wd, err := bc.WorkDir(ctx) |
| fmt.Printf("workdir: %v\n", wd) |
| fmt.Printf("status: %+v\n", s) |