mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 13:10:22 +03:00
Add mkdonut command
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// +build ignore
|
||||
|
||||
/*
|
||||
* Minio Client (C) 2014, 2015 Minio, Inc.
|
||||
* Makefile alternative for Minimalist Object Storage, (C) 2015 Minio, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -23,7 +23,6 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strconv"
|
||||
"text/template"
|
||||
"time"
|
||||
|
||||
@@ -49,14 +48,6 @@ import (
|
||||
// Version autogenerated
|
||||
var Version = {{if .Date}}"{{.Date}}"{{else}}""{{end}}
|
||||
|
||||
// Tag is of following format
|
||||
//
|
||||
// [[STRING]-[EPOCH]
|
||||
//
|
||||
// STRING is release string of your choice.
|
||||
// EPOCH is unix seconds since Jan 1, 1970 UTC.
|
||||
var Tag = {{if .Tag}}"{{.Tag}}"{{else}}""{{end}}
|
||||
|
||||
// getVersion -
|
||||
func getVersion() string {
|
||||
t, _ := time.Parse(time.RFC3339Nano, Version)
|
||||
@@ -109,7 +100,7 @@ func runMinioInstall(ctx *cli.Context) {
|
||||
fmt.Print(minioGenerate)
|
||||
os.Exit(1)
|
||||
}
|
||||
fmt.Println(minioGenerate)
|
||||
fmt.Print(minioGenerate)
|
||||
minioBuildErr := minioBuild.runCommand()
|
||||
if minioBuildErr != nil {
|
||||
fmt.Print(minioBuild)
|
||||
@@ -136,13 +127,7 @@ func runMinioRelease(ctx *cli.Context) {
|
||||
}
|
||||
t := time.Now().UTC()
|
||||
date := t.Format(time.RFC3339Nano)
|
||||
// [[STRING]-[EPOCH]
|
||||
//
|
||||
// STRING is release string of your choice.
|
||||
// EPOCH is unix seconds since Jan 1, 1970 UTC.
|
||||
tag := "release" + "-" + strconv.FormatInt(t.Unix(), 10)
|
||||
|
||||
version := Version{Date: date, Tag: tag}
|
||||
version := Version{Date: date}
|
||||
err := writeVersion(version)
|
||||
if err != nil {
|
||||
fmt.Print(err)
|
||||
@@ -152,7 +137,6 @@ func runMinioRelease(ctx *cli.Context) {
|
||||
|
||||
func main() {
|
||||
app := cli.NewApp()
|
||||
app.Usage = "Minimalist Object Storage"
|
||||
app.Commands = []cli.Command{
|
||||
{
|
||||
Name: "release",
|
||||
|
||||
Reference in New Issue
Block a user