Feature Request: Ability to `rename` and`chmod` resultant file

Open
#41 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
github, go
Domain
cli

Research direction

No source files or tests are named. Start by tracing the fetch CLI handling for the shown --asset-name and --asset-file-mode options, then follow how a GitHub release asset is written to the destination. Done means the interface supports both options and the downloaded resultant file uses the requested destination name and octal mode.

Written by the indexing model from the issue text.

Description

enhancement

what

  • I wish that we could specify the octal mode of the file download from the github release
  • I wish that we could specify the destination name

why

  • So that I can set the execution bit (E.g. 0755) without calling chmod explicitly
  • Extremely common usage pattern is to download binary releases of apps (e.g. fetch) and then run them

example interface

fetch --repo https://github.com/gruntwork-io/fetch \
      --tag=v0.2.0 \
      --release-asset=fetch_darwin_amd64 \
      --asset-name=fetch \
      --asset-file-mode=0755 \
        /usr/local/bin
Dominant language
Go
Stars
625
Forks
92
Avg merge
12h 56m
Merged PRs (30d)
2

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from gruntwork-io/fetch

All issues in gruntwork-io/fetch

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.