Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change(developer): update kmc-copy to use full GitHub URLs rather than github: prefix #12746

Closed
mcdurdin opened this issue Nov 29, 2024 · 1 comment · Fixed by #12754 or #12773
Closed
Assignees
Milestone

Comments

@mcdurdin
Copy link
Member

mcdurdin commented Nov 29, 2024

kmc-copy

  • point-in-time, so we don't need a hash, can be a branch (and if omitted, uses default branch)
  • command line, so shorter is better
  • copypaste is probably normal use
kmc copy -o my_khmer cloud:khmer_angkor

# And longhand for cloud:
kmc copy https://keyman.com/keyboards/khmer_angkor -o my_khmer
kmc copy https://keyman.com/keyboards/khmer_angkor/ -o my_khmer

# Direct from GitHub:

kmc copy -o my_khmer https://github.com/keyman-keyboards/khmer_angkor 
kmc copy -o my_khmer https://github.com/keyman-keyboards/khmer_angkor/
kmc copy -o my_khmer https://github.com/keyman-keyboards/khmer_angkor/raw/main/khmer_angkor.kpj
kmc copy -o my_khmer https://github.com/keyman-keyboards/khmer_angkor/tree/main/khmer_angkor
kmc copy -o my_khmer https://github.com/keyman-keyboards/khmer_angkor/tree/main/khmer_angkor/

kmc copy -o my_khmer https://github.com/keymanapp/keyboards/tree/refs/heads/master/k/khmer_angkor
kmc copy -o my_khmer https://github.com/keymanapp/keyboards/tree/refs/heads/master/k/khmer_angkor/
kmc copy -o my_khmer https://github.com/keymanapp/keyboards/tree/master/release/k/khmer_angkor
kmc copy -o my_khmer https://github.com/keymanapp/keyboards/tree/master/release/k/khmer_angkor/
kmc copy -o my_khmer https://github.com/keymanapp/keyboards/raw/refs/heads/master/release/k/khmer_angkor/khmer_angkor.kpj
kmc copy -o my_khmer https://github.com/keymanapp/keyboards/raw/master/release/k/khmer_angkor/khmer_angkor.kpj 
kmc copy -o my_khmer https://github.com/keymanapp/keyboards/blob/refs/heads/master/release/k/khmer_angkor/khmer_angkor.kpj 
kmc copy -o my_khmer https://github.com/keymanapp/keyboards/blob/master/release/k/khmer_angkor/khmer_angkor.kpj
kmc copy -o my_khmer https://github.com/keymanapp/keyboards/blob/78b6f98e5db4a249cc4231f8744f5fe4e5fd29f2/release/k/khmer_angkor/khmer_angkor.kpj
kmc copy -o my_khmer https://github.com/keymanapp/keyboards/tree/78b6f98e5db4a249cc4231f8744f5fe4e5fd29f2/release/k/khmer_angkor
kmc copy -o my_khmer https://github.com/keymanapp/keyboards/tree/78b6f98e5db4a249cc4231f8744f5fe4e5fd29f2/release/k/khmer_angkor/

# And similar patterns for raw.githubusercontent.com
kmc copy -o my_khmer https://raw.githubusercontent.com/keymanapp/keyboards/refs/heads/master/release/k/khmer_angkor/khmer_angkor.kpj 
kmc copy -o my_khmer https://raw.githubusercontent.com/keymanapp/keyboards/master/release/k/khmer_angkor/khmer_angkor.kpj 
kmc copy -o my_khmer https://raw.githubusercontent.com/keymanapp/keyboards/78b6f98e5db4a249cc4231f8744f5fe4e5fd29f2/release/k/khmer_angkor/khmer_angkor.kpj 

See also #11236 (comment)

@mcdurdin mcdurdin added this to the A18S16 milestone Nov 29, 2024
@mcdurdin mcdurdin self-assigned this Nov 29, 2024
@mcdurdin
Copy link
Member Author

See also external references already in use on keymanapp/keyboards and keymanapp/lexical-models:

# Entire remote repo (i.e. project in root)
https://github.com/mcdurdin/external_experiment_1/tree/0619c3a12a0d48b3ead3d02e9a5b15b325213fcd

# Folder in a remote repo
https://github.com/mcdurdin/external_experiment_2/tree/ade06704300fe7a1fdd40e101c415f23dabc6839/e/external_experiment_2

https://github.com/keymanapp/keyboards/blob/master/docs/externally-hosted-keyboards.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment