2024-02-25 13:16:47 +00:00
|
|
|
= Enbas
|
|
|
|
:toc: left
|
|
|
|
:toclevels: 3
|
|
|
|
:toc-title: Table of Contents
|
|
|
|
|
|
|
|
== Overview
|
|
|
|
|
2024-02-25 15:09:32 +00:00
|
|
|
Enbas is a https://docs.gotosocial.org/en/latest/[GoToSocial] client for your terminal written
|
|
|
|
in https://go.dev[Go]. The project is currently a work in progress so breaking changes will be
|
|
|
|
made and bugs may appear here and there during its early development.
|
|
|
|
Enbas has limited functionality at the moment and it is **not** recommended for use
|
|
|
|
with your production GoToSocial servers.
|
|
|
|
|
|
|
|
This project is licensed under GPLv3.
|
2024-02-25 13:16:47 +00:00
|
|
|
|
|
|
|
=== Repository mirrors
|
|
|
|
|
|
|
|
- **Code Flow:** https://codeflow.dananglin.me.uk/apollo/enbas
|
|
|
|
- **Codeberg:** https://codeberg.org/dananglin/enbas
|
2024-02-25 15:09:32 +00:00
|
|
|
- **GitHub:** https://github.com/dananglin/enbas
|
2024-02-25 13:16:47 +00:00
|
|
|
|
|
|
|
== Installation
|
|
|
|
|
|
|
|
=== Download
|
|
|
|
|
2024-02-25 15:09:32 +00:00
|
|
|
Pre-built binaries will be available on the release page on both Codeberg and GitHub when the first
|
|
|
|
release is made.
|
|
|
|
|
2024-02-25 13:16:47 +00:00
|
|
|
=== Build from source
|
|
|
|
|
2024-02-25 15:09:32 +00:00
|
|
|
==== Requirements
|
|
|
|
|
|
|
|
===== Go
|
|
|
|
|
|
|
|
A minimum version of Go 1.22.0 is required for installing spruce.
|
|
|
|
Please go https://go.dev/dl/[here] to download the latest version.
|
2024-02-25 13:16:47 +00:00
|
|
|
|
2024-02-25 15:09:32 +00:00
|
|
|
===== Mage (Optional)
|
|
|
|
|
|
|
|
The project includes mage targets for building and installing the binary.
|
|
|
|
The main advantage of using mage is that the binary's build information is baked into the binary
|
|
|
|
during compilation. You can visit the https://magefile.org/[Mage website] for instructions on how to install Mage.
|
|
|
|
|
|
|
|
==== Install with mage
|
|
|
|
|
2024-02-25 15:27:26 +00:00
|
|
|
You can install Enbas with Mage using the following commands:
|
|
|
|
[source,console]
|
|
|
|
----
|
|
|
|
git clone https://github.com/dananglin/enbas.git
|
|
|
|
cd enbas/internal/build/
|
|
|
|
mage install
|
|
|
|
----
|
|
|
|
|
|
|
|
By default Mage will attempt to install Enbas to `/usr/local/bin/enbas` which will most likely fail as you won't
|
|
|
|
the permission to write to `/usr/local/bin/`. You will need to either run `sudo mage install`, or you can
|
|
|
|
(preferably) change the install prefix to a directory that you have permission to write to using
|
|
|
|
the `ENBAS_INSTALL_PREFIX` environment variable. For example:
|
|
|
|
|
|
|
|
[source,console]
|
|
|
|
----
|
|
|
|
ENBAS_INSTALL_PREFIX=${HOME}/.local mage install
|
|
|
|
----
|
|
|
|
|
|
|
|
This will install Enbas to `~/.local/bin/enbas`.
|
|
|
|
|
|
|
|
==== Install with go
|
|
|
|
|
|
|
|
If your `GOBIN` directory is included in your `PATH` then you can install Enbas with Go.
|
|
|
|
|
|
|
|
[source,console]
|
|
|
|
----
|
|
|
|
git clone https://github.com/dananglin/enbas.git
|
|
|
|
cd enbas
|
|
|
|
go install ./cmd/enbas
|
|
|
|
----
|
2024-02-25 13:16:47 +00:00
|
|
|
|
|
|
|
== Configuration
|
|
|
|
|
2024-02-25 15:40:54 +00:00
|
|
|
Enbas uses Go's https://pkg.go.dev/os#UserConfigDir[os.UserConfigDir()] function to determine the
|
|
|
|
location of your configuration directory.
|
|
|
|
|
|
|
|
If you've set the `XDG_CONFIG_HOME` environment variable, the configuration files will be stored in the `$XDG_CONFIG_HOME/enbas` directory.
|
|
|
|
|
|
|
|
If this is not set:
|
|
|
|
|
|
|
|
- on Linux the configuration directory will be set to `$HOME/.config/enbas`.
|
|
|
|
- on Darwin (MacOS) the configuration directory will be set to `$HOME/Library/Application Support/enbas`.
|
|
|
|
- on Windows the configuration directory will be set within the `%AppData%` directory.
|
|
|
|
|
|
|
|
If (for whatever reason) any of the above cannot be determined, the configuration directory will be set to
|
|
|
|
the current working directory.
|
|
|
|
|
2024-02-25 13:16:47 +00:00
|
|
|
== Usage
|
|
|
|
|
2024-02-25 15:40:54 +00:00
|
|
|
=== Check the build information
|
|
|
|
|
|
|
|
=== Check out the help documentation
|
|
|
|
|
|
|
|
=== Log into your GoToSocial account
|
|
|
|
|
|
|
|
=== View your account information
|
|
|
|
|
|
|
|
=== View a remote account
|
|
|
|
|
|
|
|
=== View your timeline
|
|
|
|
|
|
|
|
=== View a status
|
|
|
|
|
2024-02-25 13:16:47 +00:00
|
|
|
== Inspirations
|
|
|
|
|
2024-02-25 15:09:32 +00:00
|
|
|
This project was inspired from the following projects:
|
|
|
|
|
2024-02-25 13:16:47 +00:00
|
|
|
- **madonctl:** https://github.com/McKael/madonctl[A Mastodon CLI client written in Go.]
|
|
|
|
- **toot:** https://pypi.org/project/toot/[A Mastodon CLI and TUI written in Python.]
|
|
|
|
- **tut:** https://github.com/RasmusLindroth/tut[A Mastodon TUI written in Go.]
|