Mislav Marohnić
1e733219a7
Switch `alias`, `ci-status`, `delete`, `fork` to new args parser
2019-01-18 01:50:28 +01:00
Pocket7878
efa376225f
Add rc alias support
2017-03-02 10:16:24 +09:00
Michihito Shigemura
6089677173
Preserve description
2017-01-26 00:49:09 +09:00
Michihito Shigemura
22edf59710
Fix fish alias and testing
...
cannot find hub completion when using git alias
2017-01-24 22:45:50 +09:00
Mislav Marohnić
0c4689c673
Fix printing content on Windows after successful run
...
The old `args.After("echo", ...)` approach won't cut it on Windows since
there is no `echo` executable. Thus, nothing was printed on Windows.
Instead, expand Args type with extra functionality that allows Go
callbacks after all commands in the chain have been run.
Also, the new `args.NoForward()` is now preferred to `os.Exit()` since
it's more descriptive and allows `defer` in the calling function.
2016-09-10 23:49:58 +02:00
Mislav Marohnić
26c4bbd1e9
go fmt
2016-08-07 23:54:38 +02:00
Mislav Marohnić
b34db9cc06
Fix indent for `hub alias` fish instructions
2016-07-12 15:34:28 +02:00
Frederick Henderson
a2856756fd
Changing the Fish instructions for alias to a function.
2016-07-12 15:34:28 +02:00
Mislav Marohnić
fc9fbd4c38
Cross-references galore!
2016-01-25 02:50:01 +11:00
Mislav Marohnić
0a45aa8ddc
Reformat inline command help and expand usage options
2016-01-25 02:30:46 +11:00
Mislav Marohnić
b9077e37e6
Improve "unknown shell" output
2016-01-21 18:23:28 +11:00
Rex Schrader
5c74821593
Clarify "Unknown Shell" Error Message
...
In instances where the `SHELL` environment variable is not set, nor is the `-s` parameter set it is not clear what action should occur. Clarify the error message to make it obvious.
Closes #1065
Untested.
2016-01-20 22:56:02 -08:00
Jingwen Owen Ou
177640dbd4
Extract logic of printing out to console
...
Introduce a `console` package which encapsulates logic of printing out
to console. This provides flexibility of discarding output in tests.
It also allows us to unify format of printing to console (if we want to).
This fixes #801 .
2015-02-20 13:19:24 -08:00
mattbw
e36a6ffad7
Add csh => ~/.cshrc to profiles switch.
2014-10-22 04:59:34 +01:00
mattbw
546d7d8811
Give correct eval stanza for csh/tcsh.
...
These shells don't support $() notation, so fall back to `` notation.
2014-10-22 04:59:34 +01:00
mattbw
78d0cee055
Use correct syntax for csh/tcsh alias.
...
In these shells, the correct invocation is `alias git hub`, not `alias
git=hub`.
2014-10-22 04:39:36 +01:00
mattbw
0017e44423
Support tcsh.
...
This just adds tcsh to the list of supported shells, with its profile as
~/.tcshrc.
2014-10-22 04:36:33 +01:00
Jingwen Owen Ou
b5b7114307
Get alias.feature all passing
2014-03-25 17:34:06 -07:00
Jingwen Owen Ou
498789a999
Change namespace to github/hub
2014-02-10 08:29:03 -08:00
David Calavera
109fb85818
Use a POSIX compatible flag parser.
...
So we can use flags before and after arguments, and we can group boolean flags, just like git does.
2013-12-29 15:07:58 -08:00
David Calavera
371ae8b432
Add global commands to the runner.
...
- Use a hash to lookup for commands.
- Add more tests for the command and runner execution.
2013-12-29 14:18:14 -08:00
Jingwen Owen Ou
7eccbcc0a2
Alias is compatible with Hub
2013-12-14 07:37:16 -08:00
Jingwen Owen Ou
e3d6319fa5
Rename to Args#Params
2013-07-02 11:56:45 -07:00
Jingwen Owen Ou
a95f3909c4
Implement alias
2013-06-29 09:54:06 -07:00