We want to export some of our CLI code to re-use in other projects. But in Golang you cannot import code from a `main` package. So we need to move the actual code into its own package and only have the `func main()` in the `main` package.
This commit modifies a unit test such that it inspects a wrapped error rather than comparing errors by string.
parseTimeLockDelta
Signed-off-by: Eval EXEC <execvy@gmail.com>