-
-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use spf13/viper for managing the configuration file (#254)
- Loading branch information
1 parent
63dc102
commit 7499c16
Showing
15 changed files
with
553 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package application | ||
|
||
type Flags struct { | ||
Quiet bool | ||
KeepAlive bool | ||
ListAllInterfaces bool | ||
Port int | ||
Path string | ||
Interface string | ||
FQDN string | ||
Zip bool | ||
Config string | ||
Browser bool | ||
Secure bool | ||
TlsCert string | ||
TlsKey string | ||
Output string | ||
} | ||
|
||
type App struct { | ||
Flags Flags | ||
Name string | ||
} | ||
|
||
func New() App { | ||
return App{ | ||
Name: "qrcp", | ||
Flags: Flags{}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.