tuli

Crates.iotuli
lib.rstuli
version0.1.1
sourcesrc
created_at2021-03-17 14:15:51.916098
updated_at2021-03-17 14:25:28.880067
descriptionAn experimental local server for serving static files that sort of works (Do not use, very experimental)
homepage
repositoryhttps://github.com/collinsmuriuki/tuli
max_upload_size
id370137
size20,101
Collins Muriuki (c12i)

documentation

README

tuli

Version

An experimental local server for serving static files that sort of works (Do not use, very experimental)

Usage

Install (requires cargo):

cargo install tuli

Basic usage:

tuli serve --port 8000 --dir ./public

Tuli will serve the files in the public directory provided it has an index.html file. Images are broken at the moment though, so only UTF-8/ application/text content can be served with the current implementation.

Commands

tuli --help

tuli 0.1.0
Collins Muriuki <murerwacollins@gmail.com>


USAGE:
    tuli [SUBCOMMAND]

FLAGS:
    -h, --help
            Prints help information

    -V, --version
            Prints version information


SUBCOMMANDS:
    help     Prints this message or the help of the given subcommand(s)
    serve    Serves static files in a given directory

tuli serve --help

tuli-serve
Serves static files in a given directory

USAGE:
    tuli serve [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -d, --dir <dir>      The public directory with static files that should be served, defaults to the current directory
    -p, --port <port>    The port the server should run on, default is 8080
Commit count: 9

cargo fmt