Help us shape the future of Go! Take the 2026 Go Developer Survey

alfred

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2018 License: MIT Imports: 7 Imported by: 1

README

alfred

go get github.com/codemodus/alfred

alfred is a CLI application for serving basic html/js/css sites. alfred follows an opinionated directory structure and is well-suited to prototyping, but should generally not be used for user-facing deployments.

Available flags:

--dir={somedir}     Set directory to serve.
--port={:1234}      Set port to listen on.
-acs                Set access logging.
-s                  Set output silencing.

Defaults:

--dir=.
--port=:4001

The directory structure used: HTML files should be located in "{dir}/html". Assets should be located in "{dir}/assets". ICO files should be located in "{dir}/assets/ico".

For paths without extensions, an index.html file should be provided. For example, if "localhost:4001/this" is requested, the following file should be available "{dir}/html/this/index.html".

Documentation

Overview

alfred is a CLI application for serving basic html/js/css sites. alfred follows an opinionated directory structure and is well-suited to prototyping, but should generally not be used for user-facing deployments.

Available flags:

--dir={somedir}     Set directory to serve.
--port={:1234}      Set port to listen on.
-acs                Set access logging.
-s                  Set output silencing.

Defaults:

--dir=.
--port=:4001

The directory structure used: HTML files should be located in "{dir}/html". Assets should be located in "{dir}/assets". ICO files should be located in "{dir}/assets/ico".

For paths without extensions, an index.html file should be provided. For example, if "localhost:4001/this" is requested, the following file should be available "{dir}/html/this/index.html".

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL