Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Egan <charlie@styra.com>
  • Loading branch information
charlieegan3 committed Jun 12, 2024
1 parent 84a150f commit dedd3bb
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/remote-features.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Remote Features

This page outlines the features of Regal that need internet access to function.

## Checking for Updates

Regal will check for updates on startup. If a new version is available,
Regal will notify you by writing a message in stderr.

An example of such a message is:

```
A new version of Regal is available (v0.23.1). You are running v0.23.0.
See https://github.com/StyraInc/regal/releases/tag/v0.23.1 for the latest release.
```

This message is based on the local version set in the Regal binary, and **no
user data is sent** to GitHub where the releases are hosted.

This same function will also write to the file at: `$HOME/.config/regal/latest_version.json`,
this is used as a cache of the latest version to avoid consuming excessive
GitHub API rate limits when using Regal.

This functionality can be disabled in two ways:

* Using `.regal/config.yaml`: set `features.remote.check-version` to `false`.
* Using an environment variable: set `REGAL_DISABLE_CHECK_VERSION` to `true`.

0 comments on commit dedd3bb

Please sign in to comment.