1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
// Copyright 2019-2022 Graham Clark. All rights reserved. Use of this source
// code is governed by the MIT license that can be found in the LICENSE
// file.
//
// +build !windows
package cli
//======================================================================
// Embedded in the CLI options struct.
type PlatformSwitches struct {
Tty string `long:"tty" description:"Display the UI on this terminal." value-name:"<tty>"`
}
func (p PlatformSwitches) TtyValue() string {
return p.Tty
}
//======================================================================
type TailSwitch struct{}
func (t TailSwitch) TailFileValue() string {
return ""
}
//======================================================================
// Local Variables:
// mode: Go
// fill-column: 78
// End:
|