David Calavera
fca6287df9
Print command and subcommand short usage when calling an unknown command.
2013-12-28 21:58:29 -08:00
David Calavera
51428d5449
Allow to chain subcommands using `command.Use(subcommandName, subcommand)`.
2013-12-28 21:24:08 -08:00
Jingwen Owen Ou
fce2d4df47
Merge branch 'pull_in_cucumber_tests'
2013-12-28 19:23:15 -08:00
Jingwen Owen Ou
2fb0c52ba0
Merge branch 'fix_alias_exec'
2013-12-28 19:17:33 -08:00
Jingwen Owen Ou
334d8ab2b7
Only split alias command if it doesn't start with !
2013-12-28 19:17:21 -08:00
Jingwen Owen Ou
54769c9f10
Extract to local var refPrefix
2013-12-28 01:51:12 -08:00
Jingwen Owen Ou
712a6852bb
Merge remote-tracking branch 'origin/master' into pull_in_cucumber_tests
...
Conflicts:
commands/pull_request.go
git/git.go
2013-12-28 01:31:03 -08:00
Jingwen Owen Ou
ba6363328e
Pull in cucumber tests from Hub
...
Since 31a85e519e
...master
Some tests are ignored either because they don't make sense or WIP
2013-12-28 01:14:07 -08:00
David Calavera
671eb10418
Merge pull request jingweno/gh:136 from jingweno/remove_editor_function
...
Simplify title and body hint message creation.
2013-12-26 21:01:50 -08:00
David Calavera
42904c13e7
Simplify title and body hint message creation.
2013-12-26 20:57:08 -08:00
David Calavera
d726ad56bd
Do not print the uploading message for each file.
...
Change the message only when the upload is done.
2013-12-25 15:43:00 -08:00
David Calavera
58c77c726c
Merge pull request jingweno/gh:129 from calavera/gh_release
...
Add command to create releases.
2013-12-24 18:14:54 -08:00
David Calavera
b4e81896b6
Add check for empty arguments.
2013-12-24 15:36:36 -08:00
David Calavera
eeddb8902e
Add upload indicator.
2013-12-24 15:13:40 -08:00
David Calavera
7a0a506e23
Merge branch 'master' into gh_release
...
* master:
Gramma issue in README
Bump homebrew-gh which fixes sha and download path
Bump homebrew-gh submodule to 1.0.0
Bump version to v1.0.0
Make it explicit that multiple credentials are allowed
Quote path
Add link to available setting
Add autoupdate setting to README
Make sure we load the deprecated configuration and override it with the new one.
Save the new config after assigning the credentials.
Save the configuration with the new format when the deprecated one is detected.
Update versions automatically when autoupdate is set to true.
2013-12-24 14:37:13 -08:00
David Calavera
e81a80ef02
Use the upload service in octokit.
2013-12-24 13:44:04 -08:00
David Calavera
1eb609b03b
Update go-octokit.
2013-12-24 13:31:24 -08:00
David Calavera
4a83ffd3cd
Identify each message editor separatedly.
2013-12-23 21:37:56 -08:00
David Calavera
83054f73f2
Do not double return errors.
2013-12-23 15:59:44 -08:00
David Calavera
df6578b470
Assert directory truthy.
2013-12-23 15:58:28 -08:00
Jingwen Owen Ou
46ba0fb52c
Bump version to v1.0.0
2013-12-22 06:47:44 -08:00
Jingwen Owen Ou
95489e6d4c
Merge pull request jingweno/gh:131 from jingweno/update_autoupdate_in_readme
...
Add autoupdate setting to README
2013-12-21 13:45:30 -08:00
David Calavera
808b96a43b
Merge pull request jingweno/gh:130 from jingweno/autoupdate
...
Autoupdate by configuration.
2013-12-21 13:11:03 -08:00
David Calavera
540dbb6fea
Make sure we load the deprecated configuration and override it with the new one.
2013-12-21 11:54:48 -08:00
David Calavera
503b1d4d77
Save the new config after assigning the credentials.
2013-12-21 11:20:58 -08:00
David Calavera
e6091af27f
Save the configuration with the new format when the deprecated one is detected.
2013-12-21 11:07:21 -08:00
David Calavera
a129fce32f
Update versions automatically when autoupdate is set to true.
2013-12-20 21:20:22 -08:00
David Calavera
4f0312f35d
Move `isEmptyDir` to the command utilities.
...
Removes duplicated test helper.
2013-12-20 16:45:48 -08:00
David Calavera
6b14600fe9
Remove double isDir helper.
2013-12-20 16:41:14 -08:00
David Calavera
6480fc7a0f
Use WaitGroup to upload each asset in a different goroutine.
2013-12-20 15:48:21 -08:00
David Calavera
43f398e879
Write a message in the editor showing what you're doing.
2013-12-20 15:39:10 -08:00
David Calavera
8794caa809
Use a more generic message when the edit fail.
2013-12-20 15:27:03 -08:00
David Calavera
81c96d5298
Remove double status output.
2013-12-20 15:22:53 -08:00
David Calavera
51fe2ae002
Invert flags order.
2013-12-20 15:19:00 -08:00
David Calavera
d2f1cd527a
Read only part of the asset to detect the content type.
2013-12-20 14:22:02 -08:00
David Calavera
1fcddbe8ca
Add release creation and assets uploading.
2013-12-20 11:15:41 -08:00
David Calavera
5674bdf4ba
Move the editor the github package.
...
This avoids double importing issues.
2013-12-20 11:14:47 -08:00
David Calavera
10b4c58fae
Add the release command do the help.
2013-12-20 10:23:12 -08:00
David Calavera
f2807ba201
Create a new release based on the local branch.
2013-12-19 17:10:17 -08:00
David Calavera
b3103e44af
Extract editor logic from the pull request commands.
2013-12-19 16:54:14 -08:00
David Calavera
2e6c824876
Add command to create releases.
2013-12-19 15:49:36 -08:00
Jingwen Owen Ou
64c5ec3d19
Fallback to 0.26.0
2013-12-19 15:05:34 -08:00
Jingwen Owen Ou
b573a8f320
Merge branch 'autoupdate'
2013-12-19 15:04:38 -08:00
Jingwen Owen Ou
6faecd1887
Don't return an error if there's no newer version
2013-12-19 14:48:33 -08:00
Jingwen Owen Ou
8f797c11fd
Only prompt for update if there's a new release
...
Reference: https://github.com/jingweno/gh/pull/128#issuecomment-30971747
2013-12-19 14:44:58 -08:00
Jingwen Owen Ou
0302410abc
Don't prompt for update if it's in dev
2013-12-19 13:48:20 -08:00
Jingwen Owen Ou
4dfb4c58db
Automatically prompt for update
2013-12-19 13:40:36 -08:00
Jingwen Owen Ou
a54faff669
Extract to Updater
2013-12-19 11:30:29 -08:00
Jingwen Owen Ou
06b9a3d385
Remove snapshot from build
2013-12-19 11:30:17 -08:00
Jingwen Owen Ou
9bf17e1fd6
Merge branch 'pr_unpushed_warning'
2013-12-19 10:31:02 -08:00