Skip to content

Instantly share code, notes, and snippets.

@7yl4r
Created May 23, 2024 19:08
Show Gist options
  • Save 7yl4r/e7302cd3b682ef57fc837c88d209d39c to your computer and use it in GitHub Desktop.
Save 7yl4r/e7302cd3b682ef57fc837c88d209d39c to your computer and use it in GitHub Desktop.
brainstorming command line ai templating cli
tail data.csv  # command not found in db, test-run, 
[...]
  > clai: no history matches.
  > clai: "tail" bash program found.
  > clai: "data.csv" local file found.
  > clai: "data.csv" new IPFS pin "Qm91njnpjKNGinv90aj".
  > clai: "data.csv"
  > clai: no fuzzy matches.
  > clai: running it.
[...]  # tail output here
  > clai: use "clai retry..." if that was not what you wanted.
  > clai: use "clai fix..." to undo something.
tail data2.csv
[...]
  > clai: "tail data.csv" saved as "tail Qm91njnpjKNGinv90aj
hashed_command (will be multihash in DB) usage
tail data.csv tail $FUSE_HASH
cd my-environment
clai docker compose up
> lookup( hash("docker compose up") ) -> not found
> new command
> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment