projects
/
lightning.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adjust slice memory.
[lightning.git]
/
cmd.go
diff --git
a/cmd.go
b/cmd.go
index fdf4d9428f32414a82d0a1f25ae99a82cceddbed..eeeb6fb740f5d2d334534043e4aff6788ef2ab3d 100644
(file)
--- a/
cmd.go
+++ b/
cmd.go
@@
-1,3
+1,7
@@
+// Copyright (C) The Lightning Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
package lightning
import (
package lightning
import (
@@
-6,6
+10,7
@@
import (
"io/ioutil"
"os"
"os/exec"
"io/ioutil"
"os"
"os/exec"
+ "strings"
"git.arvados.org/arvados.git/lib/cmd"
"github.com/mattn/go-isatty"
"git.arvados.org/arvados.git/lib/cmd"
"github.com/mattn/go-isatty"
@@
-25,6
+30,9
@@
var (
"export": &exporter{},
"export-numpy": &exportNumpy{},
"flake": &flakecmd{},
"export": &exporter{},
"export-numpy": &exportNumpy{},
"flake": &flakecmd{},
+ "slice": &slicecmd{},
+ "slice-numpy": &sliceNumpy{},
+ "anno2vcf": &anno2vcf{},
"numpy-comvar": &numpyComVar{},
"filter": &filtercmd{},
"build-docker-image": &buildDockerImage{},
"numpy-comvar": &numpyComVar{},
"filter": &filtercmd{},
"build-docker-image": &buildDockerImage{},
@@
-42,6
+50,9
@@
func Main() {
if !isatty.IsTerminal(os.Stderr.Fd()) {
logrus.StandardLogger().Formatter = &logrus.TextFormatter{DisableTimestamp: true}
}
if !isatty.IsTerminal(os.Stderr.Fd()) {
logrus.StandardLogger().Formatter = &logrus.TextFormatter{DisableTimestamp: true}
}
+ if len(os.Args) >= 2 && !strings.HasSuffix(os.Args[1], "version") {
+ cmd.Version.RunCommand("lightning", nil, nil, os.Stderr, os.Stderr)
+ }
os.Exit(handler.RunCommand(os.Args[0], os.Args[1:], os.Stdin, os.Stdout, os.Stderr))
}
os.Exit(handler.RunCommand(os.Args[0], os.Args[1:], os.Stdin, os.Stdout, os.Stderr))
}