Skip to content

Commit

Permalink
README.md updates
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimanyu003 committed Oct 1, 2021
1 parent b08d557 commit edfa9cd
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 12 deletions.
26 changes: 20 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,19 @@
// With input prompt
sttr

// Direct string input
echo "Hello World" | sttr md5
// Direct input
sttr md5 "Hello World"

// File input
cat file.txt | sttr base64-encode
sttr md5 file.text
sttr base64-encode image.jpg

// Reading from different processor like cat, curl, printf etc..
echo "Hello World" | sttr md5
cat file.txt | sttr md5

// Writing output to a file
cat file.yml | sttr yaml-json > file-output.json
sttr yaml-json file.yaml > file-output.json
```

# :movie_camera: Demo
Expand Down Expand Up @@ -76,19 +81,26 @@ sttr

```go
sttr -h

// Example
sttr zeropad -h
sttr md5 -h
```

* Working with files input.

```go
cat file-input.jpg | sttr base64-encode
sttr {command-name} {filename}

sttr base64-encode image.jpg
sttr md5 file.txt
sttr md-html Readme.md
```

* Writing output to file.

```go
cat words.txt | sttr count-chars > count.txt
sttr yaml-json file.yaml > file-output.json
```

* Taking input from other command.
Expand All @@ -100,6 +112,8 @@ curl https://jsonplaceholder.typicode.com/users | sttr json-yaml
* Chaining the different processor.

```go
sttr md5 hello | sttr base64-encode

echo "Hello World" | sttr base64-encode | sttr md5
```

Expand Down
26 changes: 20 additions & 6 deletions hugo/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@
// With input prompt
sttr

// Direct string input
echo "Hello World" | sttr md5
// Direct input
sttr md5 "Hello World"

// File input
cat file.txt | sttr base64-encode
sttr md5 file.text
sttr base64-encode image.jpg

// Reading from different processor like cat, curl, printf etc..
echo "Hello World" | sttr md5
cat file.txt | sttr md5

// Writing output to a file
cat file.yml | sttr yaml-json > file-output.json
sttr yaml-json file.yaml > file-output.json
```

# 🎥 Demo
Expand Down Expand Up @@ -70,19 +75,26 @@ sttr

```go
sttr -h

// Example
sttr zeropad -h
sttr md5 -h
```

* Working with files input.

```go
cat file-input.jpg | sttr base64-encode
sttr {command-name} {filename}

sttr base64-encode image.jpg
sttr md5 file.txt
sttr md-html Readme.md
```

* Writing output to file.

```go
cat words.txt | sttr count-chars > count.txt
sttr yaml-json file.yaml > file-output.json
```

* Taking input from other command.
Expand All @@ -94,6 +106,8 @@ curl https://jsonplaceholder.typicode.com/users | sttr json-yaml
* Chaining the different processor.

```go
sttr md5 hello | sttr base64-encode

echo "Hello World" | sttr base64-encode | sttr md5
```

Expand Down

0 comments on commit edfa9cd

Please sign in to comment.