mislav / gh-cp

GitHub CLI extension to copy a file from a GitHub repository locally without cloning the repository.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gh cp

A GitHub CLI extension to copy a file from a GitHub repository locally without cloning the repository.

$ gh extension install mislav/gh-cp

$ gh cp
Usage: gh cp <repo> <path> <dest>

$ gh cp cli/cli pkg/findsh/find_windows.go .

$ head find_windows.go
package findsh

import (
        "os"
        "path/filepath"

        "github.com/cli/safeexec"
)

func Find() (string, error) {

About

GitHub CLI extension to copy a file from a GitHub repository locally without cloning the repository.

License:The Unlicense


Languages

Language:Shell 100.0%