this repo has no description

cshell -> shelter

+1
README.md
···
shelter
-------
+
A shell session shim that makes exploring from the terminal a little bit easier.
+11 -7
cshell.opam shelter.opam
···
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
-
synopsis: "A short synopsis"
-
description: "A longer description"
-
maintainer: ["Maintainer Name <maintainer@example.com>"]
-
authors: ["Author Name <author@example.com>"]
-
license: "LICENSE"
-
tags: ["add topics" "to describe" "your" "project"]
+
synopsis: "Shelter from the Storm"
+
description: "A shell session shim to help you explore!"
+
maintainer: ["Patrick Ferris <patrick@sirref.org>"]
+
authors: ["Patrick Ferris <patrick@sirref.org>"]
+
license: "ISC"
+
tags: ["shell"]
homepage: "https://github.com/username/reponame"
-
doc: "https://url/to/documentation"
bug-reports: "https://github.com/username/reponame/issues"
depends: [
"dune" {>= "3.17"}
"ocaml"
+
"eio_posix"
+
"void"
+
"zfs"
+
"cid"
+
"ppx_repr"
"odoc" {with-doc}
]
build: [
+16 -11
dune-project
···
(lang dune 3.17)
-
(name cshell)
+
(name shelter)
(generate_opam_files true)
(source
(github username/reponame))
-
(authors "Author Name <author@example.com>")
+
(authors "Patrick Ferris <patrick@sirref.org>")
-
(maintainers "Maintainer Name <maintainer@example.com>")
+
(maintainers "Patrick Ferris <patrick@sirref.org>")
-
(license LICENSE)
+
(license ISC)
-
(documentation https://url/to/documentation)
(package
-
(name cshell)
-
(synopsis "A short synopsis")
-
(description "A longer description")
-
(depends ocaml)
+
(name shelter)
+
(synopsis "Shelter from the Storm")
+
(description "A shell session shim to help you explore!")
+
(depends
+
ocaml
+
eio_posix
+
void
+
zfs
+
cid
+
ppx_repr
+
)
(tags
-
("add topics" "to describe" your project)))
+
("shell")))
-
; See the complete stanza docs at https://dune.readthedocs.io/en/stable/reference/dune-project/index.html
+3 -3
src/bin/dune
···
(executable
-
(public_name cshell)
-
(package cshell)
+
(public_name shelter)
+
(package shelter)
(name main)
-
(libraries cshell fmt.tty cshell.shelter cshell.passthrough eio void))
+
(libraries shelter fmt.tty shelter.main shelter.passthrough eio void))
+2 -2
src/bin/main.ml
···
let merge = Irmin.Merge.default (Repr.option t)
end
-
module Pass = Cshell.Make (History) (Cshell_passthrough)
-
module Shelter = Cshell.Make (Shelter.History) (Shelter)
+
module Pass = Shelter.Make (History) (Shelter_passthrough)
+
module Shelter = Shelter.Make (Shelter_main.History) (Shelter_main)
let home = Unix.getenv "HOME"
src/lib/cshell.ml src/lib/shelter.ml
+2 -2
src/lib/dune
···
(library
-
(name cshell)
-
(public_name cshell)
+
(name shelter)
+
(public_name shelter)
(libraries irmin-fs.unix eio.unix eio linenoise void repr))
+3 -3
src/lib/passthrough/cshell_passthrough.ml src/lib/passthrough/shelter_passthrough.ml
···
type ctx = unit
-
let init _ _ (Cshell.History.Store ((module S), store) : entry Cshell.History.t)
-
=
+
let init _ _
+
(Shelter.History.Store ((module S), store) : entry Shelter.History.t) =
match S.list store history_key with
| [] -> ()
| xs ->
···
List.iter (fun v -> LNoise.history_add v |> ignore) entries
let run _fs clock proc
-
( ((Cshell.History.Store ((module S), store) : entry Cshell.History.t) as
+
( ((Shelter.History.Store ((module S), store) : entry Shelter.History.t) as
full_store),
() ) (Exec command) =
let info () =
-1
src/lib/passthrough/cshell_passthrough.mli
···
-
include Cshell.Engine.S with type entry = string
+3 -3
src/lib/passthrough/dune
···
(library
-
(name cshell_passthrough)
-
(public_name cshell.passthrough)
+
(name shelter_passthrough)
+
(public_name shelter.passthrough)
(preprocess
(pps ppx_repr))
-
(libraries cshell))
+
(libraries shelter))
+1
src/lib/passthrough/shelter_passthrough.mli
···
+
include Shelter.Engine.S with type entry = string
+3 -3
src/lib/shelter/dune
···
(library
-
(name shelter)
-
(public_name cshell.shelter)
+
(name shelter_main)
+
(public_name shelter.main)
(preprocess
(pps ppx_repr))
-
(libraries cshell cid void zfs))
+
(libraries shelter cid void zfs))
+1 -1
src/lib/shelter/shelter.ml src/lib/shelter/shelter_main.ml
···
open Eio
module Store = Store
-
module H = Cshell.History
+
module H = Shelter.History
module History = struct
type mode = Void.mode
+1 -1
src/lib/shelter/shelter.mli src/lib/shelter/shelter_main.mli
···
include Irmin.Contents.S with type t := t
end
-
include Cshell.Engine.S with type entry = History.t
+
include Shelter.Engine.S with type entry = History.t