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

fix: #845 deprecated argument of tldr #857

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
run: git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf; yes | ~/.fzf/install;

- name: Install tealdeer
run: sudo npm install -g tldr
run: cargo install tealdeer

- name: Run bash tests
run: ./tests/run
Expand Down
4 changes: 2 additions & 2 deletions src/clients/tldr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn markdown_lines(query: &str, markdown: &str) -> Vec<String> {
}

pub fn call(query: &str) -> Result<Vec<String>> {
let args = [query, "--markdown"];
let args = [query, "--raw"];

let child = Command::new("tldr")
.args(args)
Expand Down Expand Up @@ -96,7 +96,7 @@ Error:
{}

Note:
Please make sure you're using a version that supports the --markdown flag.
Please make sure you're using a version that supports the --raw flag.
If you are already using a supported version you can ignore this message.
{}
",
Expand Down