Expand README, including spec, plus a few minor adjustments to match spec
This commit is contained in:
parent
612a98cfde
commit
90ff49cb90
4 changed files with 76 additions and 10 deletions
|
|
@ -13,7 +13,7 @@ let interpret (past: Schema.schema) (input: string list): Schema.schema =
|
|||
match input with
|
||||
| "pkg" :: tail -> System.Package.merge past tail
|
||||
| "os" :: _ -> say (System.File.read "/etc/os-release")
|
||||
| "host" :: _ -> say (System.Process.Reader.read [||] "hostname").output
|
||||
| "user" :: _ -> say (System.Process.Reader.read [||] "whoami").output
|
||||
| "echo" :: tail -> say (String.concat " " tail)
|
||||
| ("version" | "-v" | "--version") :: _ ->
|
||||
say (Schema.format_version future.meta.version)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue