Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: JanDeDobbeleer/aliae
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.18.0
Choose a base ref
...
head repository: JanDeDobbeleer/aliae
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing with 1,858 additions and 349 deletions.
  1. +30 −0 .all-contributorsrc
  2. +31 −27 .github/dependabot.yml
  3. +29 −25 .github/workflows/code.yml
  4. +0 −30 .github/workflows/codeql.yml
  5. +1 −1 .github/workflows/docs.yml
  6. +3 −3 .github/workflows/gomod.yml
  7. +1 −1 .github/workflows/inno.yml
  8. +1 −1 .github/workflows/markdown.yml
  9. +1 −1 .github/workflows/merge_contributions_pr.yml
  10. +7 −7 .github/workflows/release.yml
  11. +1 −1 .github/workflows/scoop.yml
  12. +1 −1 .github/workflows/winget.yml
  13. +44 −48 src/.golangci.yml
  14. +2 −1 src/.goreleaser.yml
  15. +1 −1 src/cli/get.go
  16. +6 −5 src/cli/init.go
  17. +1 −1 src/cli/root.go
  18. +1 −1 src/cli/version.go
  19. +56 −23 src/config/config.go
  20. +82 −0 src/config/config_test.go
  21. +6 −6 src/{core → config}/init.go
  22. +1 −0 src/config/test/aliae.invalid.yaml
  23. +2 −0 src/config/test/aliae.valid.yaml
  24. +4 −0 src/config/test/aliae.valid_generic.yaml
  25. +2 −0 src/config/test/aliases/aliases.yaml
  26. +2 −0 src/config/test/aliases/aliases2.yaml
  27. +2 −0 src/config/test/envs/env.yaml
  28. +1 −0 src/config/test/files/test.yaml
  29. +1 −0 src/config/test/files/test2.yaml
  30. +194 −0 src/config/unmarshal.go
  31. +46 −0 src/config/unmarshal_strings.go
  32. +47 −0 src/config/unmarshal_strings_test.go
  33. +74 −0 src/config/unmarshal_test.go
  34. +13 −0 src/context/os.go
  35. +7 −3 src/context/path.go
  36. +1 −1 src/context/runtime.go
  37. +9 −14 src/go.mod
  38. +20 −43 src/go.sum
  39. +18 −13 src/shell/aliae.go
  40. +4 −5 src/shell/aliae_test.go
  41. +20 −4 src/shell/cmd.go
  42. +1 −1 src/shell/echo.go
  43. +16 −6 src/shell/env.go
  44. +54 −6 src/shell/env_test.go
  45. +1 −1 src/shell/fish.go
  46. +6 −0 src/shell/git.go
  47. +99 −0 src/shell/link.go
  48. +140 −0 src/shell/link_test.go
  49. +19 −1 src/shell/nu.go
  50. +7 −10 src/shell/path.go
  51. +144 −3 src/shell/path_test.go
  52. +21 −2 src/shell/pwsh.go
  53. +1 −1 src/shell/pwsh_test.go
  54. +1 −4 src/shell/script.go
  55. +3 −2 src/shell/script_test.go
  56. +6 −0 src/shell/tcsh.go
  57. +60 −4 src/shell/template.go
  58. +167 −0 src/shell/template_test.go
  59. +9 −1 src/shell/xonsh.go
  60. +15 −1 src/shell/zsh.go
  61. +3 −0 website/docs/contributors.md
  62. +2 −0 website/docs/introduction.mdx
  63. +8 −0 website/docs/setup/configuration.mdx
  64. +1 −0 website/docs/setup/env.mdx
  65. +68 −0 website/docs/setup/include.mdx
  66. +33 −0 website/docs/setup/link.mdx
  67. +2 −0 website/docs/setup/path.mdx
  68. +1 −1 website/docs/setup/script.mdx
  69. +42 −32 website/docs/setup/templates.mdx
  70. +0 −5 website/docusaurus.config.js
  71. +0 −1 website/package.json
  72. +2 −0 website/sidebars.js
  73. +153 −0 website/static/schema.json
30 changes: 30 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -37,6 +37,36 @@
"maintenance",
"code"
]
},
{
"login": "kiliantyler",
"name": "Kilian Tyler",
"avatar_url": "https://avatars.githubusercontent.com/u/22827191?v=4",
"profile": "https://github.com/kiliantyler",
"contributions": [
"code",
"doc"
]
},
{
"login": "boldandbrad",
"name": "Brad Wojcik",
"avatar_url": "https://avatars.githubusercontent.com/u/11165073?v=4",
"profile": "http://boldandbrad.dev",
"contributions": [
"code",
"doc"
]
},
{
"login": "cethien",
"name": "Borislaw Sotnikow",
"avatar_url": "https://avatars.githubusercontent.com/u/60463918?v=4",
"profile": "https://github.com/cethien",
"contributions": [
"code",
"doc"
]
}
],
"contributorsPerLine": 7,
58 changes: 31 additions & 27 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
target-branch: "main"
schedule:
interval: "daily"
groups:
all:
patterns:
- "*"

# Maintain dependencies for Go modules
- package-ecosystem: "gomod"
directory: "/src"
target-branch: "main"
schedule:
interval: "daily"
groups:
minor-patch:
patterns:
- "*"
update-types:
- "minor"
- "patch"
version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
target-branch: "main"
schedule:
interval: "daily"
groups:
all:
patterns:
- "*"
ignore:
- dependency-name: "softprops/action-gh-release"
# https://github.com/softprops/action-gh-release/issues/556
versions: ["2.2.0"]

# Maintain dependencies for Go modules
- package-ecosystem: "gomod"
directory: "/src"
target-branch: "main"
schedule:
interval: "daily"
groups:
minor-patch:
patterns:
- "*"
update-types:
- "minor"
- "patch"
54 changes: 29 additions & 25 deletions .github/workflows/code.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
on:
pull_request:
paths:
- 'src/**'

name: Validate Code
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ github.workspace }}/src
steps:
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: 1.22
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Golang CI
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804
with:
working-directory: src
- name: Unit Tests
run: go test -v ./...
on:
pull_request:
paths:
- 'src/**'

name: Validate Code
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ github.workspace }}/src
steps:
- name: Install Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
with:
go-version: 1.22.4
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Golang CI
uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae
with:
working-directory: src
- name: Fieldalignment
run: |
go install golang.org/x/tools/go/analysis/passes/fieldalignment/cmd/fieldalignment@latest
fieldalignment "./..."
- name: Unit Tests
run: go test -v ./...
30 changes: 0 additions & 30 deletions .github/workflows/codeql.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
submodules: true
- name: Build And Deploy 🚀
6 changes: 3 additions & 3 deletions .github/workflows/gomod.yml
Original file line number Diff line number Diff line change
@@ -13,11 +13,11 @@ jobs:
working-directory: ${{ github.workspace }}/src
steps:
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
with:
go-version: 1.22
go-version: 1.22.4
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Check for unused dependencies
run: |
go mod tidy
2 changes: 1 addition & 1 deletion .github/workflows/inno.yml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ jobs:
working-directory: ${{ github.workspace }}/packages/inno
steps:
- name: Checkout code 👋
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Build installer 📦
id: build
env:
2 changes: 1 addition & 1 deletion .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Lint files
uses: articulate/actions-markdownlint@17b8abe7407cd17590c006ecc837c35e1ac3ed83
with:
2 changes: 1 addition & 1 deletion .github/workflows/merge_contributions_pr.yml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code 👋
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Check and merge ⛙
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
with:
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -19,10 +19,10 @@ jobs:
skipped: ${{ steps.changelog.outputs.skipped }}
steps:
- name: Checkout code 👋
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Create changelog ✍️
id: changelog
uses: TriPSs/conventional-changelog-action@f04dac1fd07687cec8ea302937ca588b33786e98
uses: TriPSs/conventional-changelog-action@67139193614f5b9e8db87da1bd4240922b34d765
with:
github-token: ${{ secrets.github_token }}
skip-version-file: "true"
@@ -39,25 +39,25 @@ jobs:
working-directory: ${{ github.workspace }}/src
steps:
- name: Checkout code 👋
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Install Go 🗳
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
with:
go-version: 1.22
go-version: 1.22.4
- name: Tag HEAD 😸
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git tag ${{ needs.changelog.outputs.tag }}
- name: Run GoReleaser 🚀
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf
with:
distribution: goreleaser
version: latest
args: build --clean
workdir: src
- name: Release 🎓
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda
with:
tag_name: ${{ needs.changelog.outputs.tag }}
body: ${{ needs.changelog.outputs.body }}
2 changes: 1 addition & 1 deletion .github/workflows/scoop.yml
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ jobs:
working-directory: ${{ github.workspace }}/packages/scoop
steps:
- name: Checkout code 👋
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Update Template ✍️
run: |
./build.ps1 -Version ${{ github.event.inputs.version }}
2 changes: 1 addition & 1 deletion .github/workflows/winget.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ jobs:
WINGETCREATE_TOKEN: ${{ secrets.WINGETCREATE_TOKEN }}
steps:
- name: Checkout code 👋
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Create manifest and submit PR 📦
run: |
./build.ps1 -Version "${{ github.event.inputs.version }}" -Token $env:WINGETCREATE_TOKEN
92 changes: 44 additions & 48 deletions src/.golangci.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,44 @@
run:
timeout: 10m
allow-parallel-runners: true
linters:
disable-all: true
enable:
- bodyclose
- dupl
- errcheck
- exhaustive
- gochecknoinits
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- revive
- goprintffuncname
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- noctx
- nolintlint
- rowserrcheck
- exportloopref
- staticcheck
- typecheck
- unconvert
- unparam
- unused
- whitespace
- lll
linters-settings:
gocritic:
enabled-tags:
- diagnostic
- experimental
- opinionated
- performance
- style
disabled-tags:
- experimental
disabled-checks:
- ifElseChain
lll:
line-length: 180
run:
timeout: 10m
allow-parallel-runners: true
linters:
disable-all: true
enable:
- bodyclose
- dupl
- errcheck
- exhaustive
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- revive
- goprintffuncname
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- noctx
- nolintlint
- rowserrcheck
- copyloopvar
- staticcheck
- typecheck
- unconvert
- unparam
- unused
- whitespace
- lll
linters-settings:
gocritic:
enabled-tags:
- diagnostic
- opinionated
- performance
- style
disabled-tags:
- experimental
lll:
line-length: 180
Loading