Cysharp / Ulid

Fast .NET C# Implementation of ULID for .NET and Unity.
MIT License
1.29k stars 58 forks source link

add Ulid.Cli project. #2

Closed itn3000 closed 5 years ago

itn3000 commented 5 years ago

this PR adds the ULID utility tool project. current implementation is only new command.

remaining works are

current command interface(from dotnet ulid help)

generate: create ULID
-b, -base64: [default=False]output as base64 format, or output base32 if false
-t, -timestamp: [default=null]timestamp(converted to UTC, ISO8601 format recommended)
-r, -randomness: [default=null]randomness bytes(formatted as Base32, must be 16 characters, case insensitive)
neuecc commented 5 years ago

thanks, good project! As a use case that I consider, when getting the range(to query sql) maybe requires to generate start-datetime(randomness is 0), end-datetime(randomness is max).

itn3000 commented 5 years ago

fixes are almost done, please review it

neuecc commented 5 years ago

thanks, I'll check soon(today)

neuecc commented 5 years ago

Thank you, I'm happy to your great contribution!