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

feature request: --append #583

Open
8go opened this issue Aug 23, 2020 · 0 comments
Open

feature request: --append #583

8go opened this issue Aug 23, 2020 · 0 comments

Comments

@8go
Copy link

8go commented Aug 23, 2020

Is your feature request related to a problem? Please describe.
No problem. Just an idea for an enhancement.

Describe the solution you'd like

  • Similar to --edit an --append command that takes the input directly from the commandline.
  • Something like: --append=
  • Example: cheat --append somecommand "\n\n# example foo\nfoo -bar"
  • The result would be that 3 lines ("\n\n# example foo\nfoo -bar") would be
    appended to the end of cheatsheet for somecommand

Additional context

  • I wand people to add examples/snippets to the end of cheatsheets via a Matrix bot.
  • The Matrix bot users obviously have no access to the remote machine or an editor.
  • The simplest implementation for the bot would be to get the contributions from the
    bot users and make a call like cheat --append somecommand $usercontribution
  • Yes, I could do an echo $usercontribution >> ~/.config/cheat/cheatsheets/personal/somecommand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant