~egtann/up

0d6f43301500136f76a27edc5b23b0d05f8915ec — Evan Tann 5 months ago 732703d
update module path, license from mit to isc
5 files changed, 23 insertions(+), 27 deletions(-)

M LICENSE
M README.md
M cmd/up/main.go
M cmd/up/up_test.go
M go.mod
M LICENSE => LICENSE +13 -21
@@ 1,21 1,13 @@
The MIT License (MIT)

Copyright (c) 2018 Evan Tann

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Copyright 2018 Evan Tann

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.

M README.md => README.md +1 -1
@@ 8,7 8,7 @@ and as a result, more reliable and less prone to bugs.
### Install

```
$ go get -u git.sr.ht/~egtann/up/cmd/up
$ go get -u egt.run/pkg/up/cmd/up
```

### Usage

M cmd/up/main.go => cmd/up/main.go +7 -3
@@ 16,7 16,7 @@ import (
	"strings"
	"time"

	"git.sr.ht/~egtann/up"
	"egt.run/pkg/up"
)

type flags struct {


@@ 142,14 142,18 @@ func run() error {
	}

	// Default the tags equal to the command name, which makes the
	// following work: `upgen my_app | up -`
	// following work: `cup -f my_app.json | up -`
	if len(flgs.Tags) == 0 {
		flgs.Tags[string(conf.DefaultCommand)] = struct{}{}
	}

	// Remove any unnecessary inventory. All remaining defined inventory
	// will be used.
	if _, exist := flgs.Tags["all"]; !exist {
	if _, exist := flgs.Tags["all"]; exist {
		for ip, tags := range inventory {
			inventory[ip] = append(tags, "all")
		}
	} else {
		for ip, tags := range inventory {
			var found bool
			for _, t := range tags {

M cmd/up/up_test.go => cmd/up/up_test.go +1 -1
@@ 5,7 5,7 @@ import (
	"log"
	"testing"

	"git.sr.ht/~egtann/up"
	"egt.run/pkg/up"
)

func TestMakeBatches(t *testing.T) {

M go.mod => go.mod +1 -1
@@ 1,3 1,3 @@
module git.sr.ht/~egtann/up
module egt.run/pkg/up

go 1.13