blob: fa3ddd75551b32606d4a3786ff2b34a8c68844a9 [file] [log] [blame]
// Copyright 2015 The Vanadium 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 (
"v.io/jiri/tool"
"v.io/x/lib/cmdline"
)
var (
exportDirFlag string
)
func init() {
cmdRoot.Flags.StringVar(&exportDirFlag, "export-dir", "gs://vanadium-kiosk",
"Directory for storing/retrieving screenshots. Dirs that start with 'gs://' point to Google Storage buckets.")
tool.InitializeRunFlags(&cmdRoot.Flags)
}
func root() *cmdline.Command {
return cmdRoot
}
var cmdRoot = &cmdline.Command{
Name: "vkiosk",
Short: "takes and shows screenshots of a given url",
Long: `
Command vkiosk runs Chrome in a virtual X11 environtment for a given url, takes
its screenshots periodically, exports them to Google Storage, and serves them
in a http server.
This tool is only tested in Debian/Ubuntu.
`,
Children: []*cmdline.Command{
cmdCollect,
cmdServe,
},
}