Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.

add --asset flag to tea releases create #6

Merged
merged 10 commits into from
Mar 11, 2019
Merged

add --asset flag to tea releases create #6

merged 10 commits into from
Mar 11, 2019

Conversation

noerw
Copy link
Member

@noerw noerw commented Dec 4, 2018

Implements #4:
Adds the --asset flag (-a shorthand) to tea releases create, allowing to specify a file by path to be attached to the release.

  • The argument can be specified multiple times.
  • The file's basename is used as attachment name.
  • The flag name is compatible with githubs hub-release command

Also fixes the execution of subcommands, which failed because the parent command arguments (repository + login) where not recognized.

urfave/cli does not provide arguments to parent commands to their children,
so in order for subcommands to work, we have to check both
ctx.GlobalString and ctx.String for values to be present.
allows to specify a file path to be attached to the release.
can be specified multiple times
cmd/releases.go Outdated Show resolved Hide resolved
cmd/releases.go Outdated Show resolved Hide resolved
@lafriks lafriks added the enhancement New feature or request label Dec 4, 2018
@noerw
Copy link
Member Author

noerw commented Dec 22, 2018

@lafriks i resolved your change requests, any updates on this?

@noerw noerw changed the title implement #4 add --asset flag to tea releases create Jan 20, 2019
@Smithx10
Copy link

Smithx10 commented Mar 6, 2019

Any news on this? Would be nice to have.

cmd/releases.go Show resolved Hide resolved
cmd/releases.go Outdated Show resolved Hide resolved
cmd/releases.go Show resolved Hide resolved
Co-Authored-By: noerw <noerw@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request lgtm/done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants