Skip to content

Commit

Permalink
chore: Move internal commands back into internal directory
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Jan 31, 2022
1 parent 5689a9f commit 0254d2d
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ jobs:
ignore: completions
- name: Whitespace
run: |
go run ./pkg/cmds/lint-whitespace
go run ./internal/cmds/lint-whitespace
- name: Typos
run: |
go install github.com/twpayne/findtypos@v0.0.1
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ issues:
- forbidigo
- gosec
- lll
path: ^pkg/cmds/
path: ^internal/cmds/
- linters:
- gosec
- lll
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ generate:
.PHONY: lint
lint: ensure-golangci-lint
./bin/golangci-lint run
${GO} run ./pkg/cmds/lint-whitespace
${GO} run ./internal/cmds/lint-whitespace

.PHONY: format
format: ensure-gofumpt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func run() error {
})

// Generate install.sh.
installShTemplate, err := template.ParseFiles("pkg/cmds/generate-install.sh/install.sh.tmpl")
installShTemplate, err := template.ParseFiles("internal/cmds/generate-install.sh/install.sh.tmpl")
if err != nil {
return err
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//go:generate go run . completion fish -o completions/chezmoi.fish
//go:generate go run . completion powershell -o completions/chezmoi.ps1
//go:generate go run . completion zsh -o completions/chezmoi.zsh
//go:generate go run ./pkg/cmds/generate-install.sh -o assets/scripts/install.sh
//go:generate go run ./internal/cmds/generate-install.sh -o assets/scripts/install.sh

package main

Expand Down

0 comments on commit 0254d2d

Please sign in to comment.