OCaml: Add debug logging tests
This commit is contained in:
parent
fab9c7140d
commit
f3557d5bb4
5 changed files with 39 additions and 7 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")
|
||||
| "os" :: _ -> say System.Os.identify
|
||||
| "user" :: _ -> say (System.Process.Reader.read [||] "whoami").output
|
||||
| "echo" :: tail -> say (String.concat " " tail)
|
||||
| ("version" | "-v" | "--version") :: _ ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue