Skip to content

Commit

Permalink
Set language information to code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
abicky committed Oct 30, 2024
1 parent 26e00d0 commit cdccb4e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Download the binary archive from the [releases page](https://github.com/abicky/e

For example, you can install the latest binary on a Mac with Apple silicon by the following commands:

```
```sh
curl -LO https://github.com/abicky/ecsmec/releases/latest/download/ecsmec_darwin_arm64.tar.gz
tar xvf ecsmec_darwin_arm64.tar.gz
mv ecsmec_darwin_arm64/ecsmec /usr/local/bin/
Expand All @@ -23,25 +23,25 @@ mv ecsmec_darwin_arm64/ecsmec /usr/local/bin/
If you download the archive via a browser on macOS Catalina or later, you may receive the message "“ecsmec” cannot be opened because the developer cannot be verified."
In such a case, you need to delete the attribute "com.apple.quarantine" like below:

```
```sh
xattr -d com.apple.quarantine /path/to/ecsmec
```

### Install with Homebrew (macOS or Linux)

```
```sh
brew install abicky/tools/ecsmec
```

### Install from source

```
```sh
go get -u github.com:abicky/ecsmec
```

or

```
```sh
git clone https://github.com:abicky/ecsmec
cd ecsmec
make install
Expand All @@ -52,7 +52,7 @@ make install

### recreate-service

```
```console
$ ecsmec recreate-service --help
This command creates a new service from the specified service with overrides,
and after the new service becomes stable, it deletes the old one.
Expand Down Expand Up @@ -110,7 +110,7 @@ If the service name is overridden, the operations change as follow:

You need the following permissions to execute the command:

```
```json
{
"Version": "2012-10-17",
"Statement": [
Expand Down Expand Up @@ -157,7 +157,7 @@ You need the following permissions to execute the command:

### reduce-cluster-capacity

```
```console
$ ecsmec reduce-cluster-capacity --help
This command reduces the capacity of the specified cluster safely
that belong to the auto scaling group or spot fleet request.
Expand Down Expand Up @@ -196,7 +196,7 @@ You need the following permissions to execute the command:

For a auto scaling group:

```
```json
{
"Version": "2012-10-17",
"Statement": [
Expand Down Expand Up @@ -261,7 +261,7 @@ For a auto scaling group:

For a spot fleet request:

```
```json
{
"Version": "2012-10-17",
"Statement": [
Expand Down Expand Up @@ -336,7 +336,7 @@ For a spot fleet request:

### replace-auto-scaling-group-instances

```
```console
$ ecsmec replace-auto-scaling-group-instances --help
This command replaces container instances that belong to the specified
auto scaling group and are launched before the time when this command
Expand Down Expand Up @@ -368,7 +368,7 @@ This command does the following operations to replace container instances:

You need the following permissions to execute the command:

```
```json
{
"Version": "2012-10-17",
"Statement": [
Expand Down Expand Up @@ -436,7 +436,7 @@ You need the following permissions to execute the command:

### terminate-spot-fleet-instances

```
```console
$ ecsmec terminate-spot-fleet-instances --help
This command terminates all the container instances safely that belong
to the specified spot fleet request with state "cancelled".
Expand All @@ -463,7 +463,7 @@ This command does the following operations to terminate container instances:

You need the following permissions to execute the command:

```
```json
{
"Version": "2012-10-17",
"Statement": [
Expand Down

0 comments on commit cdccb4e

Please sign in to comment.