Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Use sh for shell snippets outside docs

Manav Rathi795ee643b6f9
diff --git a/.github/docs/apple-signing.md b/.github/docs/apple-signing.md
index 464459ee09..73c9f4cec6 100644
--- a/.github/docs/apple-signing.md
+++ b/.github/docs/apple-signing.md
@@ -27,7 +27,7 @@ The Developer ID certificate and Apple Distribution certificate are different ce
On macOS, copy a file's base64 value for a GitHub secret with:
-```bash
+```sh
base64 -i path/to/file | pbcopy
```
diff --git a/.github/docs/ensu-release.md b/.github/docs/ensu-release.md
index 2c020350e6..aed88d8841 100644
--- a/.github/docs/ensu-release.md
+++ b/.github/docs/ensu-release.md
@@ -14,7 +14,7 @@ Nightly builds of `main` are automatically created every weekday morning (IST),
## Start release
-```bash
+```sh
gh workflow run ensu-release.yml \
-f action=start \
-f version=0.1.16
@@ -32,7 +32,7 @@ The workflow also opens a PR to move `main` to `0.1.17-beta`. Merge that PR afte
Cherry pick fixes to the release branch and push to replace the current RC.
-```bash
+```sh
git switch release/ensu-v0.1.16
git cherry-pick <fix-sha>
git push
@@ -40,7 +40,7 @@ git push
## Finalize release
-```bash
+```sh
gh workflow run ensu-release.yml \
-f action=finalize \
-f version=0.1.16
diff --git a/cli/README.md b/cli/README.md
index 824e8f144d..d98dedaaf8 100644
--- a/cli/README.md
+++ b/cli/README.md
@@ -11,13 +11,13 @@ releases](https://github.com/ente-io/ente/releases?q=tag%3Acli-v0).
You can also build these binaries yourself
-```shell
+```sh
./release.sh
```
Or you can build from source
-```shell
+```sh
go build -o "bin/ente" main.go
```
@@ -30,7 +30,7 @@ There is also an option to use [Docker](#docker).
Run the help command to see all available commands.
-```shell
+```sh
ente --help
```
@@ -41,7 +41,7 @@ members) and export all data using this tool.
#### Add an account
-```shell
+```sh
ente account add
```
@@ -53,13 +53,13 @@ ente account add
#### List accounts
-```shell
+```sh
ente account list
```
#### Change export directory
-```shell
+```sh
ente account update --app auth/photos --email [email protected] --dir ~/photos
```
@@ -67,7 +67,7 @@ ente account update --app auth/photos --email [email protected] --dir ~/photos
#### Start export
-```shell
+```sh
ente export
```
@@ -75,7 +75,7 @@ ente export
You can view more cli documents at [docs](docs/generated/ente.md).
To update the docs, run the following command:
-```shell
+```sh
go run main.go docs
```
@@ -90,7 +90,7 @@ Modify the `docker-compose.yml` and add volume. ``cli-data`` volume is
mandatory, you can add more volumes for your export directory.
Build and run the container in detached mode
-```shell
+```sh
docker-compose up -d --build
```
Note that [BuildKit](https://docs.docker.com/go/buildkit/) is needed to build
@@ -98,7 +98,7 @@ this image. If you face this issue, a quick fix is to add `DOCKER_BUILDKIT=1` in
front of the build command.
`exec` into the container
-```shell
+```sh
docker-compose exec ente-cli /bin/sh -c "./ente-cli version"
docker-compose exec ente-cli /bin/sh -c "./ente-cli account add"
```
diff --git a/cli/docs/release.md b/cli/docs/release.md
index dce097eafe..fcd13b7df8 100644
--- a/cli/docs/release.md
+++ b/cli/docs/release.md
@@ -21,6 +21,6 @@ it (zipped up binaries for various OS and architecture combinations).
Run the release script to build the binaries for the various OS and architecture
cominations
-```shell
+```sh
./release.sh
```
diff --git a/infra/experiments/logs-viewer/README.md b/infra/experiments/logs-viewer/README.md
index 7a66238816..72692ad769 100644
--- a/infra/experiments/logs-viewer/README.md
+++ b/infra/experiments/logs-viewer/README.md
@@ -40,7 +40,7 @@ A web-based log viewer for analyzing Ente application logs. This tool provides s
### Starting the Application
1. **Local Development**:
- ```bash
+ ```sh
cd infra/experiments/logs-viewer
python3 -m http.server 8080
```
diff --git a/infra/ml/test/README.md b/infra/ml/test/README.md
index 995734bb3f..94798c93c8 100644
--- a/infra/ml/test/README.md
+++ b/infra/ml/test/README.md
@@ -19,7 +19,7 @@ This directory contains the ML indexing parity framework for Android, iOS, deskt
## Local Run (One Command)
-```bash
+```sh
bash infra/ml/test/run_ml_parity_tests.sh
```
@@ -53,7 +53,7 @@ Optional mobile reuse env vars:
Render face detection overlays (box + score + landmarks) for each platform output:
-```bash
+```sh
uv run --project infra/ml --no-sync --with pillow-heif \
python infra/ml/test/tools/render_face_detection_overlays.py \
--parity-dir infra/ml/test/out/parity \
@@ -75,7 +75,7 @@ Useful optional filters:
Render the exact Python ground-truth decode output (including EXIF orientation handling)
for every manifest fixture, then review the generated gallery.
-```bash
+```sh
uv run --project infra/ml --no-sync --with pillow-heif \
python infra/ml/test/tools/visualize_ground_truth_decodes.py \
--manifest infra/ml/test/ground_truth/manifest.json \
@@ -100,7 +100,7 @@ Use this process when corpus/threshold/model behavior changes intentionally:
1. Update corpus metadata or thresholds in `infra/ml/test/ground_truth/manifest.json` (and comparator logic if needed).
2. Regenerate and compare with a real run:
-```bash
+```sh
bash infra/ml/test/run_ml_parity_tests.sh --platforms all --output-dir infra/ml/test/out/parity
```
diff --git a/infra/ml/test/ground_truth/README.md b/infra/ml/test/ground_truth/README.md
index 1519419f97..19e859a547 100644
--- a/infra/ml/test/ground_truth/README.md
+++ b/infra/ml/test/ground_truth/README.md
@@ -45,7 +45,7 @@ parity runs.
## Generate Goldens
-```bash
+```sh
uv run --project infra/ml --no-sync --with pillow-heif python infra/ml/test/tools/generate_goldens.py \
--manifest infra/ml/test/ground_truth/manifest.json \
--output-dir infra/ml/test/out/parity/python
@@ -57,7 +57,7 @@ downloading fixtures, and then calling the generator.
## Compare Against Platforms
-```bash
+```sh
uv run --project infra/ml python infra/ml/test/tools/compare_parity_outputs.py \
--ground-truth infra/ml/test/out/parity/python/results.json \
--platform-result android=infra/ml/test/out/parity/android/results.json \
diff --git a/mobile/apps/locker/CLAUDE.md b/mobile/apps/locker/CLAUDE.md
index b8cbc3cb57..77161e3fb1 100644
--- a/mobile/apps/locker/CLAUDE.md
+++ b/mobile/apps/locker/CLAUDE.md
@@ -20,7 +20,7 @@ Ente Locker is a Flutter application for securely storing important documents. I
**CRITICAL: CI will fail if ANY of these checks fail. Run ALL commands and ensure they ALL pass.**
-```bash
+```sh
# 1. Format Dart code for ente/mobile/app/locker
dart format .
@@ -55,7 +55,7 @@ flutter analyze
### Build & Run
-```bash
+```sh
# From mobile/ directory - bootstrap all packages
melos bootstrap
@@ -75,7 +75,7 @@ flutter build linux # Linux
### Code Quality
-```bash
+```sh
# Run linter
flutter analyze
@@ -89,7 +89,7 @@ flutter analyze lib/path/to/file.dart
### Testing
There are currently no tests in the `test/` directory. When adding tests:
-```bash
+```sh
flutter test # Run all tests
flutter test test/path/to/file_test.dart # Run specific test
```
diff --git a/mobile/apps/photos/CLAUDE.md b/mobile/apps/photos/CLAUDE.md
index 57e48c6ea3..fa4c981e62 100644
--- a/mobile/apps/photos/CLAUDE.md
+++ b/mobile/apps/photos/CLAUDE.md
@@ -28,7 +28,7 @@ The Photos app uses two types of packages:
**CRITICAL: CI will fail if ANY of these checks fail. Run ALL commands and ensure they ALL pass.**
-```bash
+```sh
# 1. Format Dart code
dart format .
@@ -62,7 +62,7 @@ flutter analyze
## Development Commands
### Using Melos (Monorepo Management)
-```bash
+```sh
# From mobile/ directory - bootstrap all packages
melos bootstrap
@@ -77,7 +77,7 @@ melos clean:photos
```
### Direct Flutter Commands
-```bash
+```sh
# Development run
flutter run --flavor independent
@@ -90,7 +90,7 @@ flutter build ios
```
### Code Quality
-```bash
+```sh
# Static analysis and linting
flutter analyze .
diff --git a/rust/apps/cli/README.md b/rust/apps/cli/README.md
index 064369288f..d5e51e68e9 100644
--- a/rust/apps/cli/README.md
+++ b/rust/apps/cli/README.md
@@ -2,7 +2,7 @@ WIP Ente Rust CLI.
## Development
-```bash
+```sh
cargo fmt # format
cargo clippy # lint
cargo build # build
diff --git a/rust/apps/ensu/README.md b/rust/apps/ensu/README.md
index 82dfea4a22..d3617255c3 100644
--- a/rust/apps/ensu/README.md
+++ b/rust/apps/ensu/README.md
@@ -6,7 +6,7 @@ Requires cmake (e.g. `brew install cmake`).
## Dev
-```bash
+```sh
cd rust/apps/ensu
# runs the Ensu web dev server and launches Tauri (default port 3010)
yarn dev
@@ -14,14 +14,14 @@ yarn dev
To change the dev port:
-```bash
+```sh
cd rust/apps/ensu
ENSU_TAURI_PORT=3020 yarn dev
```
## Build
-```bash
+```sh
cd rust/apps/ensu
# builds the Ensu web app and exports a static build for Tauri
yarn build
diff --git a/rust/crates/core/README.md b/rust/crates/core/README.md
index d80286aa61..4a41056112 100644
--- a/rust/crates/core/README.md
+++ b/rust/crates/core/README.md
@@ -53,7 +53,7 @@ let decrypted = crypto::secretbox::decrypt_box(&encrypted, &key).unwrap();
## Development
-```bash
+```sh
cargo fmt # format
cargo clippy # lint
cargo build # build
diff --git a/web/CLAUDE.md b/web/CLAUDE.md
index 13ff01ca1d..f51e8dc152 100644
--- a/web/CLAUDE.md
+++ b/web/CLAUDE.md
@@ -19,7 +19,7 @@ Format markdown files with Prettier for consistent styling
## Commands
-```bash
+```sh
# Install dependencies from the committed lockfile (uses Yarn classic 1.22.22)
yarn install --frozen-lockfile