1 parent
e6f1f36add
commit
6e18ea4c33
4 files changed
+120
No files matched your search
@@ -0,0 +1,47 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '>=1.20'
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0 # all history for all branches and tags
|
||||
|
||||
- name: Install dependencies
|
||||
run: go mod download
|
||||
|
||||
- name: Install libasound2-dev
|
||||
run: apt update && apt install -y libasound2-dev
|
||||
|
||||
- name: Linux build amd64
|
||||
run: GOOS=linux GOARCH=amd64 go build -o bin/rdu-linux-amd64
|
||||
|
||||
- name: Linux build arm64
|
||||
run: GOOS=linux GOARCH=arm64 go build -o bin/rdu-linux-arm64
|
||||
|
||||
- name: Darwin build amd64
|
||||
run: GOOS=darwin GOARCH=amd64 go build -o bin/rdu-darwin-amd64
|
||||
|
||||
- name: Darwin build arm64
|
||||
run: GOOS=darwin GOARCH=arm64 go build -o bin/rdu-darwin-arm64
|
||||
|
||||
- name: Create release
|
||||
uses: https://gitea.com/actions/release-action@main
|
||||
with:
|
||||
draft: false
|
||||
prerelease: false
|
||||
files: |-
|
||||
bin/**
|
||||
api_key: "${{ secrets.RELEASE_TOKEN }}"
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024, tchivert
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,16 @@
|
||||
all: build
|
||||
|
||||
build:
|
||||
go build -o rdu
|
||||
|
||||
run: build
|
||||
./rdu
|
||||
|
||||
release:
|
||||
git tag -d latest
|
||||
git push --delete origin latest
|
||||
git tag latest HEAD
|
||||
git push origin latest
|
||||
|
||||
clean:
|
||||
rm -f rdu
|
||||
@@ -0,0 +1,36 @@
|
||||
# rdu - another disk usage utility
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
wget https://git.rznet.fr/tchivert/rdu/releases/download/latest/rdu-<os>-<arch> -O ~/.local/bin/rdu
|
||||
chmod +x ~/.local/bin/rdu
|
||||
```
|
||||
|
||||
Exemple on an amd64 Linux machine:
|
||||
|
||||
```bash
|
||||
wget https://git.rznet.fr/tchivert/rdu/releases/download/latest/rdu-linux-amd64 -O ~/.local/bin/rdu
|
||||
chmod +x ~/.local/bin/rdu
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
Usage: rdu [-h] [-v] [-x] [-n] [-d size] [-t top] dir
|
||||
Options:
|
||||
-h Show this help message
|
||||
-v Verbose
|
||||
-x Scan current filesystem only
|
||||
-n Non-interactive
|
||||
-d Minimum directory size
|
||||
-t Top N results
|
||||
```
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
- [gdamore/tcell](https://github.com/gdamore/tcell/) - Terminal UI library
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the MIT License. See the [LICENSE](https://git.rznet.fr/tchivert/rdu/src/branch/main/LICENSE) file for more information.
|
||||
Reference in new issue
Block a user