6301994d1e
hcat: Add Metrics module
2023-10-03 12:02:13 +02:00
e53fe2237d
flake: Define package within an overlay
2023-10-03 11:56:09 +02:00
10057518cb
Implement a status line
...
The status line shows information about the shown file, such as size,
modification time and permissions.
2023-09-10 11:36:35 +02:00
2ecde4fea5
Implement getFileInfo to retrieve meta data
...
getFileInfo returns a record containing meta data about the given file,
such as permissions, last modification time and time. We'll use this
action to fill a neat status bar.
2023-09-01 18:27:39 +02:00
1de42395d4
Implement basic hcat functionality
...
We show a simple UI that informs the user about the possible choices:
- n to show the next page
- q to quit immediately
2023-08-30 19:46:40 +02:00
3cd99e3f0b
Add 'doctest' as a cabal test
...
We provide a simple wrapper that executes `doctest` on our `src`
directory. This allows us to run all doctests during a regular `cabal
test` run.
2023-08-29 23:28:49 +02:00
8b1755425c
Implement utility functions to deal with the user
...
- getTerminalSize -> returns the dimensions of the terminal
- getUserCommand -> returns input from the user. We currently support
- ``NextPage`` and `Quit`.
Implement getTerminalSize via 'tput'
2023-08-29 23:27:18 +02:00
5c113326e7
flake: Add dependency to process
2023-08-29 00:06:45 +02:00
b783faef1a
Implement wordWrap and paginate
2023-08-28 19:11:51 +02:00
67b691d410
flake: Install hspec-discover
2023-08-26 01:13:57 +02:00
eeac31df24
flake: Simplify packages function
2023-08-26 01:13:48 +02:00
8f76ec738e
flake: Attempt to run doctests
...
Reviewed-by: Alexander Kobjolke <me@failco.de>
2023-08-24 00:00:31 +02:00
64cdbc9bce
flake: Put tools into nativeBuildInputs
2023-08-21 06:49:51 +02:00
30132088df
flake: Disable doctest for now as it won't run during flake check correctly
2023-08-21 06:34:21 +02:00
7a69fb2363
Make 'nix flake check' work
2023-08-19 01:10:47 +02:00
da3b61b467
Update cabal file
2023-08-19 00:34:40 +02:00
3e96aaa42e
Set indentation for fourmolu
2023-08-19 00:33:36 +02:00
9876e488c4
Run doctest before commits
2023-08-18 11:09:34 +02:00
a102423515
Cover our utility functons with unit tests
2023-08-17 22:30:39 +02:00
a56355b1f9
Configure fourmolu
...
Multi-line comments do not play nicely with the landuage-server.
Tested-by: Alexander Kobjolke <me@failco.de>
2023-08-17 22:15:54 +02:00
ace38dcebc
Move code to Internal module and add tests
2023-08-15 19:47:37 +02:00
2ac76cb650
Replace String by Text
2023-08-13 13:32:14 +02:00
81b0437bb7
Implement a tiny cat version
...
We only support a single file which gets written to stdout. Non-existing
files or other errors are printed to stderr and the program terminates.
2023-08-13 10:55:57 +02:00
babdc90cef
Initial import
2023-08-12 10:50:03 +02:00