Skip to content

Commit c706325

Browse files
committed
doc: add GIF to README
1 parent 8413575 commit c706325

File tree

3 files changed

+96
-5
lines changed

3 files changed

+96
-5
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ _Pronounced "epic-but-with-a-k"_
44
A CLI for working with Unix Timestamps inspired by [epochconverter.com](https://www.epochconverter.com).
55
Also kind of like Unix `date`, but for smoother brains and folks who like nanosecond timestamps.
66

7+
![Terminal prompt showing generating a timestamp and parsing it with epok](./docs/assets/epok.gif)
8+
79
Main commands:
810
1. **`parse`** - read a unix timestamp and return the human readable form. Infers the precision.
911
2. **`now`** - generate a unix timestamp for the current instant. Multiple precisions supported.
@@ -57,7 +59,10 @@ go test -v ./...
5759

5860
## TODO
5961

60-
### MVP
62+
<details>
63+
64+
<summary>MVP</summary>
65+
6166
* [X] `parse` command
6267
* [X] Outputs UTC and local system time from arg
6368
* [X] Outputs UTC and local system time from stdin
@@ -66,12 +71,14 @@ go test -v ./...
6671
* [X] `-p,--precision` to specify the precision
6772
* [X] `go install` instructions
6873
* [X] Version command (handled by `fang`)
69-
* [ ] Flair: GIF + ~Ascii Art~ + Logo
74+
* [X] Flair: GIF + Ascii Art
7075
* [X] CI
7176
* [X] go releaser
7277
* [X] homebrew tap
7378

74-
### Part 1
79+
</details>
80+
81+
### Milestone 1
7582
* [ ] Makefile, Taskfile or `Just` to build
7683
* [ ] `parse` command
7784
* [ ] timezone flag for parse command to specify additional output zone
@@ -88,8 +95,7 @@ go test -v ./...
8895
* [X] Output Mode: `json`
8996
* [ ] golintci + CI
9097
* [ ] `at` command for generating a unix timestamp from multiple formats.
91-
* [ ] Add "preferred timezones" to the config file, which are used when outputing
92-
human readable information.
98+
* [ ] Add "preferred timezones" to the config file, which are used when outputting human-readable information.
9399
* [ ] batch process multiple timestamps and return tabular delta
94100
* [X] ~built-in copy/paste functionality (yes, I know `pbcopy`/`pbpaste` is a thing)~ now I'm thinking this doesn't make much sense if you can read from stdin.
95101
* [ ] "default" command - alias your favorite command in the tool

docs/assets/epok.gif

252 KB
Loading

docs/epok.tape

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# VHS documentation
2+
#
3+
# Output:
4+
# Output <path>.gif Create a GIF output at the given <path>
5+
# Output <path>.mp4 Create an MP4 output at the given <path>
6+
# Output <path>.webm Create a WebM output at the given <path>
7+
#
8+
# Require:
9+
# Require <string> Ensure a program is on the $PATH to proceed
10+
#
11+
# Settings:
12+
# Set FontSize <number> Set the font size of the terminal
13+
# Set FontFamily <string> Set the font family of the terminal
14+
# Set Height <number> Set the height of the terminal
15+
# Set Width <number> Set the width of the terminal
16+
# Set LetterSpacing <float> Set the font letter spacing (tracking)
17+
# Set LineHeight <float> Set the font line height
18+
# Set LoopOffset <float>% Set the starting frame offset for the GIF loop
19+
# Set Theme <json|string> Set the theme of the terminal
20+
# Set Padding <number> Set the padding of the terminal
21+
# Set Framerate <number> Set the framerate of the recording
22+
# Set PlaybackSpeed <float> Set the playback speed of the recording
23+
# Set MarginFill <file|#000000> Set the file or color the margin will be filled with.
24+
# Set Margin <number> Set the size of the margin. Has no effect if MarginFill isn't set.
25+
# Set BorderRadius <number> Set terminal border radius, in pixels.
26+
# Set WindowBar <string> Set window bar type. (one of: Rings, RingsRight, Colorful, ColorfulRight)
27+
# Set WindowBarSize <number> Set window bar size, in pixels. Default is 40.
28+
# Set TypingSpeed <time> Set the typing speed of the terminal. Default is 50ms.
29+
#
30+
# Sleep:
31+
# Sleep <time> Sleep for a set amount of <time> in seconds
32+
#
33+
# Type:
34+
# Type[@<time>] "<characters>" Type <characters> into the terminal with a
35+
# <time> delay between each character
36+
#
37+
# Keys:
38+
# Escape[@<time>] [number] Press the Escape key
39+
# Backspace[@<time>] [number] Press the Backspace key
40+
# Delete[@<time>] [number] Press the Delete key
41+
# Insert[@<time>] [number] Press the Insert key
42+
# Down[@<time>] [number] Press the Down key
43+
# Enter[@<time>] [number] Press the Enter key
44+
# Space[@<time>] [number] Press the Space key
45+
# Tab[@<time>] [number] Press the Tab key
46+
# Left[@<time>] [number] Press the Left Arrow key
47+
# Right[@<time>] [number] Press the Right Arrow key
48+
# Up[@<time>] [number] Press the Up Arrow key
49+
# Down[@<time>] [number] Press the Down Arrow key
50+
# PageUp[@<time>] [number] Press the Page Up key
51+
# PageDown[@<time>] [number] Press the Page Down key
52+
# Ctrl+<key> Press the Control key + <key> (e.g. Ctrl+C)
53+
#
54+
# Display:
55+
# Hide Hide the subsequent commands from the output
56+
# Show Show the subsequent commands in the output
57+
58+
Output ./assets/epok.gif
59+
60+
Require epok
61+
62+
Set Shell "bash"
63+
Set FontSize 32
64+
Set Width 1600
65+
Set Height 800
66+
Set Theme { "name": "Epok", "black": "#535178", "red": "#ef6487", "green": "#5eca89", "yellow": "#fdd877", "blue": "#65aef7", "magenta": "#aa7ff0", "cyan": "#43c1be", "white": "#ffffff", "brightBlack": "#535178", "brightRed": "#ef6487", "brightGreen": "#5eca89", "brightYellow": "#fdd877", "brightBlue": "#65aef7", "brightMagenta": "#aa7ff0", "brightCyan": "#43c1be", "brightWhite": "#ffffff", "background": "#29283b", "foreground": "#b3b0d6", "selection": "#3d3c58", "FF8B00": "#FF8B00" }
67+
Set WindowBar Colorful
68+
Set Margin 20
69+
Set MarginFill "#FF8B00"
70+
Set BorderRadius 10
71+
Set TypingSpeed 0.150
72+
73+
Type "# generate a unix timestamp" Sleep 1s Enter Enter
74+
75+
Type "epok now" Sleep 1s Enter Enter
76+
77+
Type "# save a nanosecond timestamp to the clipboard" Sleep 1s Enter Enter
78+
79+
Type "epok now --precision=nanos --output=simple | tee >(pbcopy)" Sleep 1s Enter Enter
80+
81+
Type "# display the human-readable timestamp" Sleep 1s Enter Enter
82+
83+
Type "pbpaste | epok parse" Sleep 1s Enter
84+
85+
Sleep 10s

0 commit comments

Comments
 (0)