mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-28 07:27:57 +02:00
make serving files as optional feature.
This commit is contained in:
parent
7fb977faa4
commit
d78f98e78e
2 changed files with 11 additions and 9 deletions
|
@ -30,7 +30,7 @@ func (Server) Init(cmd *cobra.Command) error {
|
|||
return err
|
||||
}
|
||||
|
||||
cmd.PersistentFlags().String("static", "./www", "path to neko client files to serve")
|
||||
cmd.PersistentFlags().String("static", "", "path to neko client files to serve")
|
||||
if err := viper.BindPFlag("static", cmd.PersistentFlags().Lookup("static")); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue