forked from apptainer/singularity
/
cli.go
27 lines (22 loc) · 808 Bytes
/
cli.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2018, Sylabs Inc. All rights reserved.
// This software is licensed under a 3-clause BSD license. Please consult the
// LICENSE.md file distributed with the sources of this project regarding your
// rights to use or distribute this software.
package main
import (
"github.com/sylabs/singularity/cmd/internal/cli"
"github.com/sylabs/singularity/internal/pkg/buildcfg"
"github.com/sylabs/singularity/internal/pkg/sylog"
"github.com/sylabs/singularity/internal/pkg/util/goversion"
useragent "github.com/sylabs/singularity/pkg/util/user-agent"
)
func main() {
if err := goversion.Check(); err != nil {
sylog.Fatalf("%s", err)
}
// In cmd/internal/cli/singularity.go
cli.ExecuteSingularity()
}
func init() {
useragent.InitValue(buildcfg.PACKAGE_NAME, buildcfg.PACKAGE_VERSION)
}