Skip to content

A command-line interface for simple-httpd

Notifications You must be signed in to change notification settings

emacs-eine/simple-httpd-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: GPL v3 JCS-ELPA

simple-httpd-cli

A command-line interface for simple-httpd

CI

Here is the basic usage of this tool:

USAGE: simple-httpd-cli [COMMAND] [OPTIONS]

A command-line interface for simple-httpd

COMMANDS:

 run [path]                        Translate the text and output to standard output.

OPTIONS:

 --help, -h                        Show usage information and exit
 --host <host>, -h <host>          Set the host.
 --port <port>, -p <port>          Set the port.
 --ip-family <ip-family>           Set the IP family.

💾 Installation

You need to add this line to your Eask file (global recommanded).

(source 'gnu)
(source 'melpa)
(source 'jcs-elpa)

Then, install it:

eask install -g simple-httpd-cli

🔧 Usage

To run the simple http server:

eask -g exec simple-httpd-cli </path/to/root/>

The output:

Starting up http-server, serving `</path/to/root/>'

simple-httpd version: 20230821.1458

Available on:
  localhost:8080

Hit CTRL-C to stop the server

🛠️ Contribute

PRs Welcome Elisp styleguide Donate on paypal Become a patron

If you would like to contribute to this project, you may either clone and make pull requests to this repository. Or you can clone the project and establish your own branch of this tool. Any methods are welcome!

🔬 Development

To run the test locally, you will need the following tools:

Link this package as a global dependency:

eask -g link add simple-httpd-cli </path/to/project/dir/>

Then execute the command:

eask -g exec simple-httpd-cli --help

📝 P.S. For more information, find the Eask manual at https://emacs-eask.github.io/.

⚜️ License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

See LICENSE for details.

About

A command-line interface for simple-httpd

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published