Commit Graph

24 Commits

Author SHA1 Message Date
Taylor Blau
1c665a3534 commands/run.go: make --version synonymous with version() 2018-05-21 18:19:33 -07:00
Taylor Blau
6eb3d9009c Revert "Merge pull request #2968 from git-lfs/root---version-flag"
This reverts commit 8355d6c24f55212f8fba2dc34ad34b3e0894e2c5, reversing
changes made to 1e995a7b06d6ecac33c227c295b8088261a56b5d.
2018-05-21 18:12:40 -07:00
Taylor Blau
fd5ae09f84
Merge pull request #2969 from git-lfs/exit-on-unknown-subcommand
commands/run.go: exit 127 on unknown sub-command
2018-04-12 16:07:31 -07:00
Taylor Blau
a4dfae7ccd commands/run.go: return 127 from an unknown sub-command 2018-04-12 12:16:24 -07:00
Taylor Blau
3379c0c161 commands/run.go: teach Run() to return an exit code 2018-04-12 12:16:07 -07:00
Taylor Blau
e37c8bb223 commands: make --version a synonym for 'version' 2018-04-12 11:56:48 -07:00
rick olson
b61a4bcb63 localstorage: exit stage left 2017-10-25 13:23:12 -06:00
rick olson
2fc7ad19a9 config: ResolveGitBasicDirs() is unnecessary now 2017-10-24 18:36:16 -06:00
rick olson
b184b1ce4c config: remove Config global 2017-10-24 13:48:51 -06:00
rick olson
af383dc860 config: move ResolveGitBasicDirs() to *Configuration 2017-10-18 18:18:29 -06:00
rick olson
97fc2ed06b remove reliance on global config filesystem vars 2017-10-18 18:09:33 -06:00
rick olson
d16a320363 don't init api client just to close it 2017-09-29 11:46:13 -06:00
Taylor Blau
dd7c145ee4 commands/help: print helptext to stdout for consistency with Git 2017-05-09 09:32:55 -06:00
risk danger olson
2026b10b15 initializing the api client early loads the git config before config.ResolveGitBasicDirs() runs 2017-04-28 09:06:43 -06:00
risk danger olson
e8ae6abda4 deprecate LoggingStats in favor of LogHTTPStats() 2017-04-27 11:37:59 -06:00
risk danger olson
352e491706 stream the http stats writes 2017-04-27 11:37:59 -06:00
risk danger olson
2435a67205 teach the client about HTTPLogger so it can Close it after the cmd exits 2017-04-27 11:37:59 -06:00
risk danger olson
2ef53ba1fe log http responses in order, not by bucket 2017-04-27 11:37:59 -06:00
risk danger olson
c9a03bb3bc commands: remove last httputil usage 2017-01-04 16:10:53 -07:00
risk danger olson
6a8b010381 fix problems running 'install' in a root dir 2016-11-30 13:56:22 -07:00
risk danger olson
bba8f3b876 update package imports 2016-11-15 10:01:18 -07:00
risk danger olson
60639b0271 put all the command stuff in run.go 2016-09-01 10:28:30 -06:00
risk danger olson
a12cdc889f RegisterCommand() can no longer disable commands
the config is available at init(), so isCommandEnabled() checks can be
pulled out of the RegisterCommand() callback, simplifying its signature.
2016-09-01 10:09:38 -06:00
risk danger olson
e8bf1bd033 move the command init to a separate file 2016-09-01 09:21:48 -06:00