bfile_cli/README.md

37 lines
1.1 KiB
Markdown
Raw Normal View History

2023-11-02 17:47:13 +01:00
<h1>
blek! File CLI
<a href='https://jenkins.blek.codes/job/bfile_cli'>
<img src='https://jenkins.blek.codes/job/bfile_cli/badge/icon?style=plastic' alt='CI/CD Build status'></img>
</a>
</h1>
This is the CLI for [blek! File](https://git.blek.codes/blek/bfile).
You can download binaries [here]('https://jenkins.blek.codes/job/bfile_cli)
2023-11-02 17:16:17 +01:00
It is written in Go since I thought that it would be fun to try out this cool shiny language, which I regret dearly and can't imagine the pain maintaining this.
Also this app utilizes the bFile's [cURL API](https://git.blek.codes/blek/bfile/pulls/15)
## Building
```sh
$ git clone this://repo
$ cd repo
2023-11-02 18:11:50 +01:00
$ . ./package.env
$ go build . -ldflags "-s -w -X main.version=$VERSION"
2023-11-02 17:16:17 +01:00
$ ./bfile_cli
```
2023-11-03 06:37:08 +01:00
## Installing
Arch (AUR)
```sh
$ paru -S bfile-cli # or yay
```
2023-11-02 17:16:17 +01:00
## Debugging
Same as the build, I guess. I am not really a go programmer, but I suppose that if you want to debug this, you already know the go way to debug a CLI app and this section is useless for you.
## Usage
```sh
$ bfile_cli upload file.txt https://instance.url.com
```