~fmac/dracaena

fd82c7ac4d40f667c42b089a17563b81f3a7d7fa — Francesco Camuffo 2 months ago 0d86268 main
host under fmac.dev
3 files changed, 6 insertions(+), 6 deletions(-)

M README.md
M dracaena.go
M go.mod
M README.md => README.md +1 -1
@@ 7,7 7,7 @@ The one-line output string is intended to be displayed in any kind of bar.

## Install

`go install git.sr.ht/~fmac/dracaena@latest`
`go install fmac.dev/dracaena@latest`

## Usage


M dracaena.go => dracaena.go +4 -4
@@ 5,10 5,10 @@ import (
	"os"
	"sort"

	"git.sr.ht/~fmac/dracaena/utils"
	"fmac.dev/dracaena/utils"

	"github.com/spf13/viper"
	"github.com/Ullaakut/nmap/v2"
	"github.com/spf13/viper"
)

type Target struct {


@@ 104,7 104,7 @@ func main() {
			for j, p := range runHosts[0].Ports {
				pS := portStateMap[p.Status()]
				ports = fmt.Sprintf("%s%d%s", ports, p.ID, pS)
				if j < len(runHosts[0].Ports) - 1 {
				if j < len(runHosts[0].Ports)-1 {
					ports = fmt.Sprintf("%s;", ports)
				}
			}


@@ 120,7 120,7 @@ func main() {
		}

		out = fmt.Sprintf("%s%s [%s]", out, t, ports)
		if i < targetsCount - 1 {
		if i < targetsCount-1 {
			out = fmt.Sprintf("%s%s", out, conf.Separator)
		}
	}

M go.mod => go.mod +1 -1
@@ 1,4 1,4 @@
module git.sr.ht/~fmac/dracaena
module fmac.dev/dracaena

go 1.15