Commit graph

133 commits

Author SHA1 Message Date
a95847ad60
removed cmd/enbas/usage.go 2024-08-12 21:44:59 +01:00
b1f9377788
checkpoint: move usage funcs to separate internal package and auto-generate summaries 2024-08-12 17:25:08 +01:00
bb815b05ce
checkpoint: generate code for internal/executor/execute.go 2024-08-12 16:01:50 +01:00
de740de211
checkpoint: move build information to internal package
- move the build information to the internal package to simplify the
  version executor.
- add the Executor interface to internal/executor/executors.go
2024-08-12 12:39:43 +01:00
43de60f5c2
renamed cmd/enbas-cli-generators to cmd/enbas-codegen 2024-08-12 10:35:32 +01:00
1e355ec10e
update schema 2024-08-12 01:45:17 +01:00
2921d11be5
checkpoint: add remove to schema 2024-08-11 18:10:51 +01:00
e9e53f70cb
checkpoint: add add to the schema 2024-08-11 17:55:43 +01:00
c91561b314
checkpoint: the account-name field is now of type StringSliceValue 2024-08-11 17:05:41 +01:00
f5f835020a
checkpoint: moved custom flag values under new internal package 2024-08-11 16:13:35 +01:00
fe52a991db
checkpoint: add show to the schema 2024-08-11 11:49:47 +01:00
7d2daf77cf
checkpoint: add create to the schema 2024-08-11 00:16:12 +01:00
733a1fc9ac
checkpoint: add mute and unmute to schema 2024-08-10 16:23:00 +01:00
9d509af0df
checkpoint: add edit and delete to schema 2024-08-10 12:06:35 +01:00
93bc7a93f8
checkpoint: added block and unblock to schema 2024-08-10 10:27:45 +01:00
b06fdc2960
checkpoint: add more commands to the schema
- Added accept and reject
- Added follow and unfollow
- Add ability to use a define a different field name for each flag
  reference.
2024-08-10 08:51:53 +01:00
e23e7de262
checkpoint: add init to schema 2024-08-09 23:59:45 +01:00
622ee40306
checkpoint: added the switch command to schema 2024-08-09 23:37:50 +01:00
a3a1adbf14
checkpoint: now generate the executors in the executors package 2024-08-09 19:40:46 +01:00
d1f5e57703
checkpoint: additional fields 2024-08-09 19:28:03 +01:00
e16852da97
add whoami to schema 2024-08-09 18:57:00 +01:00
dee32cc27c
checkpoint: optionally set printer and config 2024-08-09 17:35:44 +01:00
5b8a407a3f
checkpoint: began to create schema and code generator 2024-08-09 17:16:35 +01:00
299b134b58
chore: set minimum go version to 1.22.6 2024-08-09 09:31:51 +01:00
cb7ac4175d
style: ran gofmt 2024-08-02 13:04:40 +01:00
2ccfdc4336
refactor: update client package
- add a type for the parameters of the sendRequest method
- contentType is now a parameter for the sendRequest method.
2024-08-02 08:15:15 +01:00
bad22ecd70
feat: add all-images and all-videos flags
When viewing media attachments from a status, the all-images and
all-videos flags will allow users to view all images or videos,
respectively.
2024-08-01 04:24:47 +01:00
3d20adfa57
chore: REUSE.toml
- Replace .reuse/dep5 with the new REUSE.toml file.
- Add licensing information to REUSE.toml and remove the licensing
  headers from the source files.
2024-08-01 04:01:38 +01:00
60aeec06f9
feat: add all-images and all-videos flags
When viewing media attachments from a status, the all-images and
all-videos flags will allow users to view all images or videos
respectively.
2024-08-01 00:54:27 +01:00
6bc00138ab
feat: show statuses created from an account
When viewing an account's information the user can now optionally view
the statuses that the account has created.
2024-08-01 00:24:31 +01:00
c468d1fb62
refactor: create constant values for base paths
Created constant values for the Accounts and Follow Requests base API
paths.
2024-07-10 12:06:36 +01:00
6e260266b1
fix: update the status list printer function
- Show whether a status is a boost, a reply to another status or a
  normal post.
- Move the "Created At" field to a new line.
- Show the date and time when a status was boosted.
2024-07-10 09:14:13 +01:00
2bb801b6d0
feat: add ability to reply to statuses 2024-07-09 03:13:54 +01:00
ec282e207f
refactor: use baseListPath where necessary
Replace the static string of the base list API path with the
baseListPath constant.
2024-07-09 00:25:43 +01:00
28bf902599
fix: improve how lists are displayed
Improve how ordered and unordered lists are displayed within the
contents of a status by adding indentation when a list item is wrapped.

Changes:

- fix: improve how ordered and unordered lists are displayed in status
  and status list views.
- fix: improve how media attachments are displayed in status list views.
- refactor: move the line wrapping and HTML converting functions from
  utilities to the internal printer package.
- refactor: the convertHTMLToText now (optionally) applies line
  wrapping after conversion.
2024-07-08 22:53:13 +01:00
c72340490d
fix: user's boosted action in status list view
Correctly use status.Reblogged instead of status.Bookmarked value when
showing if a user has boosted a status or not in the status list view.
2024-07-07 19:15:23 +01:00
e0b4174a76
chore: add missing license annotation 2024-07-06 18:11:15 +01:00
181384fea3
docs: add the user manual
The user manual: a page that users can reference when playing with
Enbas.
2024-07-06 17:36:42 +01:00
d52bb3fdf4
fix: print error messages from instance
If an error occurs when sending a request to an instance, try and decode
and print the error message back to the user.
2024-07-04 11:27:00 +01:00
e5eb2d72a8
fix: set minimum go version to 1.22.5 2024-07-03 23:25:22 +01:00
f64f8a43a6
fix: command line format for showing followers
CHANGES:

- When viewing followers and followings from an account, the from flag
  must now be set by the user.
    - enbas show --type followers --from account --my-account
    - enbas show --type following --from account --account-name john

- New error type for unsupported show operations: Return an error if
  enbas detects an unsupported show operation (e.g. showing media from a
  list).
2024-07-03 14:20:25 +01:00
a8aeec2fbf
fix: update description for the vote flag 2024-07-03 13:34:27 +01:00
5ec1cc0e18
fix: rename the choose flag.
Rename to choose flag to vote for voting in polls.
2024-07-03 13:21:32 +01:00
1541aa6936
docs(README): fix link to installation guide 2024-07-02 13:31:14 +01:00
c12a2ce293
docs(README): update mirrored forges
Add Radicle as a forge (network) that the main branch is mirrored to.
2024-07-02 11:16:32 +01:00
4d0a42ba23
fix: mute accounts indefinitely by default 2024-07-01 21:27:04 +01:00
e4cce2cae4
refactor: update structure of switch executor 2024-07-01 21:12:20 +01:00
23ec6048b5
docs: updated documentation
- Converted documentation from Asciidoc to Markdown
- Updated the installation instructions and moved to a separate
  file in the docs directory.
- Updated the login instructions and moved to the Getting Started guide
  in the docs directory.
- Updated the licensing information in the main README.
- Created a page for changelog.
- Create a page for the user manual.
2024-07-01 13:49:11 +01:00
b03b3c31cc
fix: set absolute path to the credentials file
When creating the configuration file during the initialisation process
calculate the absolute path to the credentials file instead of the
relative path.
2024-06-29 16:02:19 +01:00
c8892a6535
feat: show user's actions on a status
Show whether the user has liked, boosted or bookmarked a status within
both the status and status list views.
2024-06-27 09:10:18 +01:00