Git Product home page Git Product logo

runrun-cli's Introduction

Hi there ๐Ÿ‘‹

runrun-cli's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

runrun-cli's Issues

Update text on script exit code other than 0

Currently if the script exits with a code other than 0 we show:

If you can't settle this, please open an issue at:
https://github.com/alexilyaev/runrun-cli/issues

We should either remove that or change the text to make it clear the script exited with non 0 code.

Consider adding executed commands to shell history

First mentioned in #8
Then recently requested again by @julienben

I didn't want to pursue this path due to he complexity of finding the relevant history file for each shell and supporting different history formats and OS's.
But maybe we could satisfy most users using existing utils:
https://github.com/sindresorhus/shell-history

Relevant environment variables:

Known history file locations:

  • $HOME/.bash_history
  • $HOME/.zsh_history
  • $HOME/.zhistory (legacy or Oh My Zsh variant or something)
  • fish - fish-shell/fish-shell#862

Alias `runrun` with `rr`

If the goal is to save time in running npm scripts, it makes sense to make the cli command even shorter.
It will also play nicely with running the last command which will use rrr (#8).

Hoist "Recently Used" scripts to the top?

If I run:

  • rr
  • Type lint
  • I see
โฏ   eslint:base
    lint:eslint
    lint

If I usually pick lint, maybe it would make sense to hoist it to the top.
Or have a dedicated section of "Recently Used" scripts.

Notes

  • Make sure to remove recently used scripts if they no longer exist.
  • Maybe allow an option to clear and/or disable the recently used section.

Feature request: vim j/k mode

Could there be an option to enable "vim" style key bindings, just for up and down movement?

I'm imagining an option such as rr --vim that would disable completion and enable "j" for down and "k" for up. I would then probably alias this on my machine, e.g. alias rr="rr --vim".

Add ability to run the last command quickly

When you run a command regularly, you can see it in shell history, as well as search back to it with ctrl+r or using the arrow keys.

It would be nice to somehow add the selected command to shell history, if it's possible

UX Suggestion: Reset selected choice on search updates

Reproduce

Given:

"start:app-admin": "APP_VARIANT=app-admin npm run start",
"start:app-viewer": "APP_VARIANT=app-viewer npm run start",
"build:app-viewer:staging": "APP_VARIANT=app-viewer npm run build",
"build:app-viewer:prod": "APP_VARIANT=app-viewer npm run build",
"deploy:app-viewer:staging": "npm run lint-and-test && npm run build:app-viewer:staging",
"deploy:app-viewer:prod": "npm run lint-and-test && npm run build:app-viewer:prod",
  1. Search for view
  2. Press Down until highlighting build:app-viewer:prod
  3. Add to search sta

Actual

deploy:app-viewer:prod is highlighted.

Expected

Should reset the selection on search updates.

Support quick run with fuzzy match

Use Case

  • I just want to run type-check
  • Don't want to wait for rr to load up for that
  • Wish I could just run `rr type

Alternatives

  • We can already use npx or yarn to run the full script name
  • But in this case it's not fun to type npx type-check

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.