Skip to content

Commit

Permalink
feat: add --print-session option to history command
Browse files Browse the repository at this point in the history
And document it while we're at it.

Something funky going on with links and mdx. I thought updating to minor
patch would fix it but doesn't. I kept the update anyway since
everything else works just fine
  • Loading branch information
lucapette committed Dec 27, 2023
1 parent 70712e7 commit 8deaf79
Show file tree
Hide file tree
Showing 8 changed files with 419 additions and 481 deletions.
3 changes: 2 additions & 1 deletion docs/docs/reference/language/operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ block expression is required.

`each` **must** be the last operator in a pipeline.

Here's an example of using `each` to make a HTTP request for each record in a data stream:
Here's an example of using `each` to make a HTTP request for each record in a
data stream:

```sh
cat /dev/kafka/local/books | each { book -> http post https://example.com/new_books "{\"book_id\": #{$book.id}}" }
Expand Down
21 changes: 19 additions & 2 deletions docs/docs/reference/language/shell.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,30 @@ Since `TypeStream` is heavily inspired by the Unix philosophy, it's only natural
that it supports many shell commands.

:::note
Note that feature parity with Unix shells is not a goal of `TypeStream` so do not expect commands to be exactly the same as their Unix counterparts.

Furthermore, `TypeStream` supports a few commands that are not available in Unix shells.
Feature parity with Unix shells is a non-goal of `TypeStream` so do not expect
commands to be exactly the same as their Unix counterparts.

`TypeStream` also supports a few commands that are not available in Unix shells.

:::

## Cd

## History

### Synopsis

`history [-p]`

### Description

The `history` command is used to display the history of commands executed in the current session.

The following options are supported:

- `-p` `--print-session` - prints the history in a copy-paste friendly format

## Http

### Synopsis
Expand Down
16 changes: 8 additions & 8 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "3.0.0",
"@docusaurus/preset-classic": "3.0.0",
"@docusaurus/theme-mermaid": "3.0.0",
"@docusaurus/core": "3.0.1",
"@docusaurus/preset-classic": "3.0.1",
"@docusaurus/theme-mermaid": "3.0.1",
"@mdx-js/react": "3.0.0",
"clsx": "^1.2.1",
"docusaurus-plugin-sass": "^0.2.3",
"prism-react-renderer": "^1.3.5",
"prism-react-renderer": "1.3.5",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-github-btn": "^1.4.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.0.0",
"@docusaurus/types": "3.0.0",
"sass": "^1.63.6",
"typescript": "5.1.6"
"@docusaurus/module-type-aliases": "3.0.1",
"@docusaurus/types": "3.0.1",
"sass": "1.69.5",
"typescript": "5.3.3"
},
"browserslist": {
"production": [
Expand Down
Loading

0 comments on commit 8deaf79

Please sign in to comment.