Skip to main content
Deno 2 is finally here 🎉️
Learn more

clone

CI License

A simple utility for the convenient clone.

Usage

clone https://github.com/denoland/deno.git

Use clone --help to see the basic command format and an example invocation.

This command creates the directory ~/src/github.com/denoland/deno. Then it clones the repository into this directory and opens it in your editor.

Install

deno install --global --allow-env --allow-read --allow-write --allow-run --force --name clone https://raw.githubusercontent.com/ekaragodin/clone/master/clone.ts

By default scripts are installed at $HOME/.deno/bin. See the Deno install command docs.

Configure

We use environment variables for configuration.

  • $EDITOR - a path to an editor to open cloned repository. Arguments are supported too, for example zed --wait.
  • $SRC_DIR - a path to a root directory for sources.

License

MIT © Evgenii Karagodin