hasundue / hatch

Hatch your eggs of projects

Home Page:https://deno.land/x/hatch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐣 Hatch

A meta-command to create a command that fetches a file or directory from a remote repository. Zero dependencies rather than the Deno runtime.

Requirements

Supported hosts

Usage

Create a hatch command

Via deno install

deno install --allow-read=. --allow-write=. --allow-net=api.github.com\
https://deno.land/x/hatch/gh/hatch.ts [...]

As a shell alias

alias hatch='deno run --allow-read=. --allow-write=. --allow-net=api.github.com\
https://deno.land/x/hatch/gh/hatch.ts [...]'

Examples

Flags for permissions are omitted and URL is shortened in the following examples for readability.

Create hatch for deno directory in hasundue/incubator repository

$ deno install gh/hatch.ts hasundue/incubator@main/deno
# Create `README.md` in the current directory
$ hatch README.md
# Copy `.github/workflows` directory recursively into the current directory
$ hatch .github/workflows

Create hatch for hasundue/incubator repository

$ deno install gh/hatch.ts hasundue/incubator
# Equivalent to `hatch README.md` in the previous example
$ hatch deno README.md

Create hatch for repositories owned by hasundue

$ deno install gh/hatch.ts hasundue
# Equivalent to `hatch README.md` in the first example
$ hatch incubator/deno README.md

About

Hatch your eggs of projects

https://deno.land/x/hatch

License:MIT License


Languages

Language:TypeScript 100.0%