github.com/btwiuse/jiri@v0.0.0-20191125065820-53353bcfef54/cmdline/testdata/flat.go (about) 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 package main 6 7 import "github.com/btwiuse/jiri/cmdline" 8 9 // cmdFlat represents the flat command. 10 var cmdFlat = &cmdline.Command{ 11 Runner: cmdline.RunnerFunc(runFlat), 12 Name: "flat", 13 Short: "Short description of command flat", 14 Long: "Long description of command flat.", 15 ArgsName: "[args]", 16 ArgsLong: "[args] are ignored", 17 } 18 19 func runFlat(env *cmdline.Env, _ []string) error { 20 return nil 21 } 22 23 func main() { 24 cmdline.Main(cmdFlat) 25 }