diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-04-11 10:15:01 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-04-11 10:16:30 +0200 |
commit | e7010c1b621d68ee53411a5ba8143d07b976d9fe (patch) | |
tree | f975e0ebe716aa8f182230429318845b248c0d30 /commands/server.go | |
parent | f396cffa239e948075af2224208671956d8b4a84 (diff) |
commands: Remove some TODOs
See #4598
Diffstat (limited to 'commands/server.go')
-rw-r--r-- | commands/server.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/commands/server.go b/commands/server.go index 5500526e8..1747e17ab 100644 --- a/commands/server.go +++ b/commands/server.go @@ -85,7 +85,6 @@ of a second, you will be able to save and see your changes nearly instantly.`, RunE: cc.server, }) - // TODO(bep) cli refactor fields vs strings cc.cmd.Flags().IntVarP(&cc.serverPort, "port", "p", 1313, "port on which the server will listen") cc.cmd.Flags().IntVar(&cc.liveReloadPort, "liveReloadPort", -1, "port for live reloading (i.e. 443 in HTTPS proxy situations)") cc.cmd.Flags().StringVarP(&cc.serverInterface, "bind", "", "127.0.0.1", "interface to which the server will bind") @@ -230,7 +229,6 @@ func (s *serverCmd) server(cmd *cobra.Command, args []string) error { } c, err := initializeConfig(true, &s.hugoBuilderCommon, s, cfgInit) - // TODO(bep) cli refactor if err != nil { return err } @@ -349,7 +347,6 @@ func (f *fileServer) createEndpoint(i int) (*http.ServeMux, string, string, erro return mu, u.String(), endpoint, nil } -// TODO(bep) cli refactor func (c *commandeer) serve(s *serverCmd) error { isMultiHost := c.hugo.IsMultihost() |