Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
How to <execute high level action via CLI> (github.com/adri1wald)
3 points by mrlowlevel on Oct 15, 2024 | hide | past | favorite | 1 comment


A 15 minute side project I cooked up on a late Monday night.

Fun examples:

```

  howto git:(main) howto "print hello world" | sh
  hello world

  howto git:(main) howto "rebase changes from a branch B onto main that was branched off from a branch A that has now been squashed into main"
  git checkout B && git rebase --onto main A B

  howto git:(main) howto "update macos"
  softwareupdate --all --install --restart

  howto git:(main) howto "list all direct non-empty child directories in current directory, each directory on a new line with no additional details" | sh
  target
  .git
  src
```




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: