21 lines
477 B
Go
21 lines
477 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/distribution/distribution/v3/registry"
|
|
_ "github.com/distribution/distribution/v3/registry/auth/token"
|
|
_ "github.com/distribution/distribution/v3/registry/storage/driver/inmemory"
|
|
|
|
// Register our custom middleware
|
|
_ "atcr.io/pkg/appview/middleware"
|
|
)
|
|
|
|
func main() {
|
|
// The serve command is registered in serve.go via init()
|
|
// Just execute the root command
|
|
if err := registry.RootCmd.Execute(); err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|