mirror of
https://codeberg.org/scip/ts.git
synced 2025-12-18 21:11:04 +01:00
added tests, add support for duration diff+add
This commit is contained in:
10
cmd/root.go
10
cmd/root.go
@@ -18,10 +18,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
"os"
|
||||
)
|
||||
|
||||
func Die(err error) int {
|
||||
@@ -36,14 +34,6 @@ func Main(output io.Writer) int {
|
||||
return Die(err)
|
||||
}
|
||||
|
||||
if conf.Examples {
|
||||
_, err := fmt.Fprintln(output, Examples)
|
||||
if err != nil {
|
||||
Die(err)
|
||||
}
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
tp := NewTP(conf)
|
||||
|
||||
if err := tp.ProcessTimestamps(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user