A command-line interface for simple-httpd
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.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-cliTo 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 serverIf 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!
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/.
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.