Skip to content

Commit 835c7f7

Browse files
authored
Merge pull request #11 from bytebutcher/master
Missing newlines in "use" and "current" command
2 parents 396118a + 0c90e8c commit 835c7f7

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ GOBIN ?= $(shell go env GOPATH)/bin
22
PKG = github.com/dotzero/git-profile
33
BIN := git-profile
44

5-
VERSION := 1.4.0
5+
VERSION := 1.5.0
66
HASH := $(shell git rev-parse --short HEAD)
77
DATE := $(shell date +%FT%T%z)
88

cmd/current.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ func Current(cfg storage, v vcs) *cobra.Command {
2525

2626
res, err := v.Get(currentProfileKey)
2727
if len(res) == 0 || err != nil {
28-
cmd.Print(defaultProfileName)
28+
cmd.Printf("%s\n", defaultProfileName)
2929
os.Exit(0)
3030
}
3131

32-
cmd.Printf("%s", res)
32+
cmd.Printf("%s\n", res)
3333
},
3434
}
3535
}

cmd/use.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func Use(cfg storage, v vcs) *cobra.Command {
4343
}
4444
}
4545

46-
cmd.Printf("Successfully applied `%s` profile to current git repository.", profile)
46+
cmd.Printf("Successfully applied `%s` profile to current git repository.\n", profile)
4747
},
4848
}
4949
}

0 commit comments

Comments
 (0)