Skip to content

Commit

Permalink
made go installable and go gettable
Browse files Browse the repository at this point in the history
  • Loading branch information
Phillip Miller committed Oct 25, 2021
1 parent 1a715a0 commit c2db832
Show file tree
Hide file tree
Showing 23 changed files with 42 additions and 34 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [v1.6.9](https://github.com/mr-pmillz/pimp-my-shell/tree/v1.6.9) (2021-10-25)

[Full Changelog](https://github.com/mr-pmillz/pimp-my-shell/compare/v1.6.8...v1.6.9)

## [v1.6.8](https://github.com/mr-pmillz/pimp-my-shell/tree/v1.6.8) (2021-10-22)

[Full Changelog](https://github.com/mr-pmillz/pimp-my-shell/compare/v1.6.7...v1.6.8)

## [v1.6.7](https://github.com/mr-pmillz/pimp-my-shell/tree/v1.6.7) (2021-10-22)

[Full Changelog](https://github.com/mr-pmillz/pimp-my-shell/compare/v1.6.6...v1.6.7)
Expand Down
2 changes: 1 addition & 1 deletion cheat/cheat.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
_ "embed" // single file embed
"fmt"
"pimp-my-shell/localio"
"github.com/mr-pmillz/pimp-my-shell/localio"
"text/template"
)

Expand Down
2 changes: 1 addition & 1 deletion cheat/cheat_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package cheat
import (
_ "embed"
"fmt"
"github.com/mr-pmillz/pimp-my-shell/localio"
"os"
"pimp-my-shell/localio"
"testing"
)

Expand Down
4 changes: 2 additions & 2 deletions extra/extra.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package extra
import (
"embed"
"fmt"
"github.com/mr-pmillz/pimp-my-shell/githubapi"
"github.com/mr-pmillz/pimp-my-shell/localio"
"gopkg.in/ini.v1"
"pimp-my-shell/githubapi"
"pimp-my-shell/localio"
)

//go:embed templates/*
Expand Down
2 changes: 1 addition & 1 deletion extra/extra_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package extra

import (
"pimp-my-shell/localio"
"github.com/mr-pmillz/pimp-my-shell/localio"
"runtime"
"testing"
"time"
Expand Down
2 changes: 1 addition & 1 deletion githubapi/githubapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package githubapi
import (
"context"
"fmt"
"github.com/mr-pmillz/pimp-my-shell/localio"
"path"
"pimp-my-shell/localio"
"strings"

"github.com/google/go-github/v39/github"
Expand Down
2 changes: 1 addition & 1 deletion githubapi/githubapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package githubapi

import (
"fmt"
"github.com/mr-pmillz/pimp-my-shell/localio"
"log"
"pimp-my-shell/localio"
"reflect"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module pimp-my-shell
module github.com/mr-pmillz/pimp-my-shell

go 1.17

Expand Down
2 changes: 1 addition & 1 deletion linux/linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package linux
import (
"embed"
"fmt"
"pimp-my-shell/localio"
"github.com/mr-pmillz/pimp-my-shell/localio"
)

//go:embed templates/*
Expand Down
2 changes: 1 addition & 1 deletion localio/localio.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ func EmbedFileCopy(dst string, src fs.File) error {
}

if exists, err := Exists(filepath.Dir(destFilePath)); err == nil && !exists {
if err = os.MkdirAll(filepath.Dir(destFilePath), 0770); err != nil {
if err = os.MkdirAll(filepath.Dir(destFilePath), 0750); err != nil {
return err
}
}
Expand Down
2 changes: 1 addition & 1 deletion macosx/macosx.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package macosx

import (
"fmt"
"pimp-my-shell/localio"
"github.com/mr-pmillz/pimp-my-shell/localio"
)

// InstallHomebrew if Not already installed
Expand Down
2 changes: 1 addition & 1 deletion macosx/macosx_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package macosx

import (
"pimp-my-shell/localio"
"github.com/mr-pmillz/pimp-my-shell/localio"
"testing"
)

Expand Down
18 changes: 9 additions & 9 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ package main

import (
"fmt"
"github.com/mr-pmillz/pimp-my-shell/cheat"
"github.com/mr-pmillz/pimp-my-shell/extra"
"github.com/mr-pmillz/pimp-my-shell/linux"
"github.com/mr-pmillz/pimp-my-shell/localio"
"github.com/mr-pmillz/pimp-my-shell/macosx"
"github.com/mr-pmillz/pimp-my-shell/nerdfonts"
"github.com/mr-pmillz/pimp-my-shell/tmux"
"github.com/mr-pmillz/pimp-my-shell/vim"
"github.com/mr-pmillz/pimp-my-shell/zsh"
"log"
"pimp-my-shell/cheat"
"pimp-my-shell/extra"
"pimp-my-shell/linux"
"pimp-my-shell/localio"
"pimp-my-shell/macosx"
"pimp-my-shell/nerdfonts"
"pimp-my-shell/tmux"
"pimp-my-shell/vim"
"pimp-my-shell/zsh"
"runtime"
)

Expand Down
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"pimp-my-shell/localio"
"github.com/mr-pmillz/pimp-my-shell/localio"
"runtime"
"testing"
"time"
Expand Down
2 changes: 1 addition & 1 deletion nerdfonts/nerdfonts.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package nerdfonts

import (
"fmt"
"pimp-my-shell/localio"
"github.com/mr-pmillz/pimp-my-shell/localio"
)

// InstallNerdFontsLSD ...
Expand Down
2 changes: 1 addition & 1 deletion nerdfonts/nerfonts_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package nerdfonts

import (
"pimp-my-shell/localio"
"github.com/mr-pmillz/pimp-my-shell/localio"
"testing"
)

Expand Down
6 changes: 3 additions & 3 deletions osrelease/osrelease.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,20 @@ func parseLine(line string) (key string, value string, err error) {

// skip empty lines
if len(line) == 0 {
err = errors.New("Skipping: zero-length")
err = errors.New("skipping: zero-length")
return
}

// skip comments
if line[0] == '#' {
err = errors.New("Skipping: comment")
err = errors.New("skipping: comment")
return
}

// try to split string at the first '='
splitString := strings.SplitN(line, "=", 2)
if len(splitString) != 2 {
err = errors.New("Can not extract key=value")
err = errors.New("can not extract key=value")
return
}

Expand Down
2 changes: 1 addition & 1 deletion tmux/tmux.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"embed"
"fmt"
gotmux "github.com/jubnzv/go-tmux"
"github.com/mr-pmillz/pimp-my-shell/localio"
"os"
"pimp-my-shell/localio"
)

//go:embed templates/*
Expand Down
2 changes: 1 addition & 1 deletion tmux/tmux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package tmux

import (
"fmt"
"github.com/mr-pmillz/pimp-my-shell/localio"
"os"
"pimp-my-shell/localio"
"testing"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion vim/vim.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"embed"
"fmt"
"github.com/google/periph/host/distro"
"pimp-my-shell/localio"
"github.com/mr-pmillz/pimp-my-shell/localio"
)

//go:embed templates/*
Expand Down
2 changes: 1 addition & 1 deletion vim/vim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package vim

import (
"fmt"
"github.com/mr-pmillz/pimp-my-shell/localio"
"os"
"pimp-my-shell/localio"
"testing"
"time"
)
Expand Down
4 changes: 2 additions & 2 deletions zsh/zsh.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"embed"
"fmt"
"github.com/Masterminds/semver"
"github.com/mr-pmillz/pimp-my-shell/localio"
"github.com/mr-pmillz/pimp-my-shell/osrelease"
"io/ioutil"
"os"
"pimp-my-shell/localio"
"pimp-my-shell/osrelease"
"regexp"
"sort"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion zsh/zsh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package zsh

import (
"fmt"
"github.com/mr-pmillz/pimp-my-shell/localio"
"os"
"pimp-my-shell/localio"
"runtime"
"testing"
)
Expand Down

0 comments on commit c2db832

Please sign in to comment.