Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add --print-session option to history command #88

Merged
merged 1 commit into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading