├── .github ├── dependabot.yml ├── package.json ├── pr-labeler.yml └── workflows │ ├── auto_merge.yml │ ├── codeql-analysis.yml │ ├── coverage.yml │ ├── pr-labeler.yml │ ├── release.yml │ └── test.yml ├── .gitignore ├── LICENSE ├── README.adoc ├── README_ja.adoc ├── cmd ├── app.go ├── app_posix_test.go ├── edit.go ├── init.go ├── init_posix_test.go ├── init_test.go ├── init_windows_test.go ├── install.go ├── install_posix_test.go ├── install_windows_test.go ├── list.go ├── list_test.go ├── releases.go ├── releases_test.go ├── root.go ├── root_test.go ├── testutils_posix_test.go ├── testutils_windows_test.go ├── uninstall.go ├── uninstall_test.go ├── unlock.go ├── update.go ├── update_test.go ├── upgrade.go └── upgrade_test.go ├── external ├── downloader │ ├── downloader.go │ └── downloader_mock.go └── github │ ├── client.go │ └── client_mock.go ├── filetype ├── filetype.go ├── filetype_posix_test.go ├── filetype_test.go └── filetype_windows_test.go ├── go.mod ├── go.sum ├── lock ├── lock.go └── lock_test.go ├── logger └── log.go ├── main.go ├── prompt └── prompt.go ├── releases ├── releases.go └── releases_test.go └── testdata ├── .gitkeep ├── archivefile.gz ├── archivefile.sh ├── archivefile.tar.gz ├── archivefile.zip ├── archivefile_targz.txt ├── archivefile_zip.txt ├── bin ├── bin.exe ├── cmd_install_releases.json ├── darwin ├── monit_linux.tar.gz ├── nimjson_linux.tar.gz ├── releases.json ├── script.bat ├── script.sh ├── test_install_files ├── 1.sh ├── 2.sh └── 3.txt ├── test_install_files_2 └── nest_dir │ └── 4.sh ├── test_install_files_3 └── nest_dir │ └── bin │ └── 5.sh ├── test_install_files_windows ├── 1.bat ├── 2.bat └── 3.txt ├── test_install_files_windows_2 └── nest_dir │ └── 4.bat ├── test_install_files_windows_3 └── nest_dir │ └── bin │ └── 5.bat └── text.txt /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/.github/package.json -------------------------------------------------------------------------------- /.github/pr-labeler.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/.github/pr-labeler.yml -------------------------------------------------------------------------------- /.github/workflows/auto_merge.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/.github/workflows/auto_merge.yml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/coverage.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/.github/workflows/coverage.yml -------------------------------------------------------------------------------- /.github/workflows/pr-labeler.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/.github/workflows/pr-labeler.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | relma 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/LICENSE -------------------------------------------------------------------------------- /README.adoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/README.adoc -------------------------------------------------------------------------------- /README_ja.adoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/README_ja.adoc -------------------------------------------------------------------------------- /cmd/app.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/app.go -------------------------------------------------------------------------------- /cmd/app_posix_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/app_posix_test.go -------------------------------------------------------------------------------- /cmd/edit.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/edit.go -------------------------------------------------------------------------------- /cmd/init.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/init.go -------------------------------------------------------------------------------- /cmd/init_posix_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/init_posix_test.go -------------------------------------------------------------------------------- /cmd/init_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/init_test.go -------------------------------------------------------------------------------- /cmd/init_windows_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/init_windows_test.go -------------------------------------------------------------------------------- /cmd/install.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/install.go -------------------------------------------------------------------------------- /cmd/install_posix_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/install_posix_test.go -------------------------------------------------------------------------------- /cmd/install_windows_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/install_windows_test.go -------------------------------------------------------------------------------- /cmd/list.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/list.go -------------------------------------------------------------------------------- /cmd/list_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/list_test.go -------------------------------------------------------------------------------- /cmd/releases.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/releases.go -------------------------------------------------------------------------------- /cmd/releases_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/releases_test.go -------------------------------------------------------------------------------- /cmd/root.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/root.go -------------------------------------------------------------------------------- /cmd/root_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/root_test.go -------------------------------------------------------------------------------- /cmd/testutils_posix_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/testutils_posix_test.go -------------------------------------------------------------------------------- /cmd/testutils_windows_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/testutils_windows_test.go -------------------------------------------------------------------------------- /cmd/uninstall.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/uninstall.go -------------------------------------------------------------------------------- /cmd/uninstall_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/uninstall_test.go -------------------------------------------------------------------------------- /cmd/unlock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/unlock.go -------------------------------------------------------------------------------- /cmd/update.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/update.go -------------------------------------------------------------------------------- /cmd/update_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/update_test.go -------------------------------------------------------------------------------- /cmd/upgrade.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/upgrade.go -------------------------------------------------------------------------------- /cmd/upgrade_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/cmd/upgrade_test.go -------------------------------------------------------------------------------- /external/downloader/downloader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/external/downloader/downloader.go -------------------------------------------------------------------------------- /external/downloader/downloader_mock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/external/downloader/downloader_mock.go -------------------------------------------------------------------------------- /external/github/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/external/github/client.go -------------------------------------------------------------------------------- /external/github/client_mock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/external/github/client_mock.go -------------------------------------------------------------------------------- /filetype/filetype.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/filetype/filetype.go -------------------------------------------------------------------------------- /filetype/filetype_posix_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/filetype/filetype_posix_test.go -------------------------------------------------------------------------------- /filetype/filetype_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/filetype/filetype_test.go -------------------------------------------------------------------------------- /filetype/filetype_windows_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/filetype/filetype_windows_test.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/go.sum -------------------------------------------------------------------------------- /lock/lock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/lock/lock.go -------------------------------------------------------------------------------- /lock/lock_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/lock/lock_test.go -------------------------------------------------------------------------------- /logger/log.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/logger/log.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/main.go -------------------------------------------------------------------------------- /prompt/prompt.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/prompt/prompt.go -------------------------------------------------------------------------------- /releases/releases.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/releases/releases.go -------------------------------------------------------------------------------- /releases/releases_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/releases/releases_test.go -------------------------------------------------------------------------------- /testdata/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testdata/archivefile.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/testdata/archivefile.gz -------------------------------------------------------------------------------- /testdata/archivefile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eux 4 | 5 | echo archive file 6 | -------------------------------------------------------------------------------- /testdata/archivefile.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/testdata/archivefile.tar.gz -------------------------------------------------------------------------------- /testdata/archivefile.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/testdata/archivefile.zip -------------------------------------------------------------------------------- /testdata/archivefile_targz.txt: -------------------------------------------------------------------------------- 1 | tar gz 2 | -------------------------------------------------------------------------------- /testdata/archivefile_zip.txt: -------------------------------------------------------------------------------- 1 | zip file 2 | -------------------------------------------------------------------------------- /testdata/bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/testdata/bin -------------------------------------------------------------------------------- /testdata/bin.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/testdata/bin.exe -------------------------------------------------------------------------------- /testdata/cmd_install_releases.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/testdata/cmd_install_releases.json -------------------------------------------------------------------------------- /testdata/darwin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/testdata/darwin -------------------------------------------------------------------------------- /testdata/monit_linux.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/testdata/monit_linux.tar.gz -------------------------------------------------------------------------------- /testdata/nimjson_linux.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/testdata/nimjson_linux.tar.gz -------------------------------------------------------------------------------- /testdata/releases.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/testdata/releases.json -------------------------------------------------------------------------------- /testdata/script.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/testdata/script.bat -------------------------------------------------------------------------------- /testdata/script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eu 4 | 5 | echo hello 6 | -------------------------------------------------------------------------------- /testdata/test_install_files/1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eu 4 | 5 | echo 1 6 | -------------------------------------------------------------------------------- /testdata/test_install_files/2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eu 4 | 5 | echo 2 6 | -------------------------------------------------------------------------------- /testdata/test_install_files/3.txt: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /testdata/test_install_files_2/nest_dir/4.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eu 4 | 5 | echo 1 6 | -------------------------------------------------------------------------------- /testdata/test_install_files_3/nest_dir/bin/5.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -eu 4 | 5 | echo 5 6 | -------------------------------------------------------------------------------- /testdata/test_install_files_windows/1.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/testdata/test_install_files_windows/1.bat -------------------------------------------------------------------------------- /testdata/test_install_files_windows/2.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/testdata/test_install_files_windows/2.bat -------------------------------------------------------------------------------- /testdata/test_install_files_windows/3.txt: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /testdata/test_install_files_windows_2/nest_dir/4.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/testdata/test_install_files_windows_2/nest_dir/4.bat -------------------------------------------------------------------------------- /testdata/test_install_files_windows_3/nest_dir/bin/5.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jiro4989/relma/HEAD/testdata/test_install_files_windows_3/nest_dir/bin/5.bat -------------------------------------------------------------------------------- /testdata/text.txt: -------------------------------------------------------------------------------- 1 | hello 2 | --------------------------------------------------------------------------------