feat: add incredibly basic features

This commit is contained in:
Arthur Beck 2025-05-01 21:31:23 -05:00
parent 298cda64f5
commit ea6c94a584
Signed by: ArthurB
GPG key ID: CA200B389F0F6BC9
6 changed files with 380 additions and 0 deletions

32
build.rs Normal file
View file

@ -0,0 +1,32 @@
use roff::{Roff, bold, italic, roman};
fn main() {
let page = Roff::new()
.control("TH", ["SESH", "1"])
.control("SH", ["NAME"])
.text([roman("sesh - Semantic Shell")])
.control("SH", ["SYNOPSIS"])
.text([
bold("sesh"),
roman(" [options]"),
])
.control("SH", ["DESCRIPTION"])
.text([
bold("sesh"),
roman("is a shell designed to be as semantic to use as possible"),
])
.control("SH", ["OPTIONS"])
.control("TP", [])
.text([
bold("-n"),
roman(", "),
bold("--bits"),
roman("="),
italic("BITS"),
])
.text([roman(
"Set the number of bits to modify. Default is one bit.",
)])
.render();
print!("{}", page);
}