mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
add no local flag for easy testing
This commit is contained in:
parent
07ecef8d87
commit
541ab998bd
3 changed files with 17 additions and 34 deletions
1
main.go
1
main.go
|
@ -21,6 +21,7 @@ type AppConfig struct {
|
|||
UseStdout bool `yaml:"stdout" flagName:"stdout" flagSName:"o" flagDescribe:"Use stdout" default:"false"`
|
||||
Yes bool `yaml:"yes" flagName:"yes" flagSName:"y" flagDescribe:"Automatically accept file" default:"false"`
|
||||
Local bool `yaml:"local" flagName:"local" flagSName:"lo" flagDescribe:"Use local relay when sending" default:"false"`
|
||||
NoLocal bool `yaml:"no-local" flagName:"no-local" flagSName:"nlo" flagDescribe:"Don't create local relay" default:"false"`
|
||||
Server string `yaml:"server" flagName:"server" flagSName:"l" flagDescribe:"Croc relay to use" default:"cowyo.com"`
|
||||
File string `yaml:"send" flagName:"send" flagSName:"s" flagDescribe:"File to send default:""`
|
||||
Path string `yaml:"save" flagName:"save" flagSName:"p" flagDescribe:"Path to save to" default:""`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue