Skip to content

Commit

Permalink
Merge branch 'master' into macroize
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5c authored Nov 26, 2021
2 parents 727fbda + 1c724f6 commit 25e57f2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions completions/_timestamps.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#compdef timestamps

local input_types='(-S --seconds -M --milliseconds -U --microseconds -N --nanoseconds -D --discord -T --twitter)'

_arguments -C \
'(-h --help)'{-h,--help}'[Print help information]' \
'(-V --version)'{-V,--version}'[Print version information]' \
"$input_types"{-S,--seconds}'[Interpret input as seconds (the default)]' \
"$input_types"{-M,--milliseconds}'[Interpret input as milliseconds]' \
"$input_types"{-U,--microseconds}'[Interpret input as microseconds]' \
"$input_types"{-N,--nanoseconds}'[Interpret input as nanoseconds]' \
"$input_types"{-D,--discord}'[Interpret input as a Discord ID]' \
"$input_types"{-T,--twitter}'[Interpret input as a Twitter Snowflake]' \
&& ret=0

return ret

0 comments on commit 25e57f2

Please sign in to comment.