Skip to content

Commit

Permalink
Include command example for Powershell in documentation files (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
steedmicro committed Dec 18, 2023
1 parent e1c495f commit 0536d8e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -56,6 +56,14 @@ various Cloud CLIs for you:
@rules_rust//:rustfmt
```

For Windows Powershell;

```powershell
bazel run `
--@rules_rust//:rustfmt.toml=//:.rustfmt.toml `
@rules_rust//:rustfmt
```

## Updating Rust dependencies

After modifying the corresponding `Cargo.toml` file in either the top level or
Expand Down
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -131,6 +131,16 @@ bazel test //... \
--remote_default_exec_properties=cpu_count=1
```
For Windows Powershell;
```powershell
bazel test //... `
--remote_instance_name=main `
--remote_cache=grpc://127.0.0.1:50051 `
--remote_executor=grpc://127.0.0.1:50051 `
--remote_default_exec_properties=cpu_count=1
```
This causes bazel to run the commands through an all-in-one `CAS`, `scheduler`
and `worker`.
Expand Down

0 comments on commit 0536d8e

Please sign in to comment.