1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use crate::PERSEUS_VERSION;
pub fn help(output: &mut impl std::io::Write) {
writeln!(
output,
"Perseus v{version} help page:
-------------------------
This is the CLI for Perseus, a super-fast WebAssembly frontend development framework! For the full reference, please see the documentation at https://arctic-hen7.github.io/perseus.
-h, --help prints this help page
-v, --version prints the current version of the CLI
build builds your app
serve serves your app (accepts $PORT and $HOST env vars, `--no-build` to serve pre-built files, `--no-run` to print server executable instead of running it)
test servers your app in testing mode (allows tests to be run against it)
clean removes `.perseus/` entirely (use `--dist` to only remove build artifacts)
eject ejects your app from the CLI harness, see documentation at https://arctic-hen7.github.io/perseus/cli/ejection.html
Please note that watching for file changes is not yet inbuilt, but can be achieved with a tool like 'entr' in the meantime.
Further information can be found at https://arctic-hen7.github.io/perseus.
",
version = PERSEUS_VERSION
)
.expect("Failed to write help page.")
}