Seth House
52b31c4d45
Added functions to delete repositories and to delete releases
0.1.0
2015-04-04 14:06:51 -06:00
Seth House
91d5c9d3cf
Added show_scopes() function to show the current user's authorizations
2015-04-04 14:06:51 -06:00
Seth House
1a22ca6d8f
Added delete() function for making common DELETE requests
2015-04-04 14:06:51 -06:00
Seth House
90651559c6
Added function to prompt the user for yes/no responses
2015-04-04 14:05:35 -06:00
Seth House
7a6ce6da1d
Alphebetize CLI flags
2015-04-04 14:05:34 -06:00
Seth House
e91f3a1fb5
Added filters to release_assets and upload_asset
2015-04-04 02:21:02 -06:00
Seth House
9b73183b42
Increase default pagination for listing repos to 100
...
No real reason to limit the return here.
2015-04-04 02:21:02 -06:00
Seth House
e5fd016177
Move the entire jq filter into the default argument
...
This allows using any arbitrary jq filter not just the subset of
filtering on a list.
2015-04-04 02:21:02 -06:00
Seth House
8ac57bb04e
Don't exec each request for a 'next' Link
...
Reusing the stack frame is neat but we're not likely to blow the stack
by making HTTP requests. Exec'ing this script messes with the rate limit
status report at the end.
2015-04-04 02:21:02 -06:00
Seth House
6908af03cb
Pepper debug log entries around a few critical spots
2015-04-04 02:21:02 -06:00
Seth House
06f57be4cc
Documentation formatting fixes in preparation for the README
2015-04-04 01:19:53 -06:00
Seth House
f058a42bb7
Move verbose info from env var to flag
...
More eyeballs will be on the -h output than the `help` output.
2015-04-04 00:01:44 -06:00
Seth House
e4215c4336
Output summary info at end by buffering in-memory FIFO
...
The previous method of storing info in a global variable did not work
when the response() function was called in a subshell. Holding a FIFO
open as r/w will buffer input (up to a point) in-memory which we can
flush to stderr at the end of the script.
2015-04-03 23:54:01 -06:00
Seth House
7b62658dc8
Output rate limit infos to stderr
2015-04-02 00:16:05 -06:00
Seth House
86b810993b
Added upload_asset()
2015-04-01 23:48:21 -06:00
Seth House
25d335bf3b
Added filter to create_release()
2015-04-01 23:48:00 -06:00
Seth House
79d6a6a029
Added filter to create_repo()
2015-04-01 23:46:26 -06:00
Seth House
9b65d52135
Added list_repos()
2015-04-01 23:45:19 -06:00
Seth House
5a21571a8a
Added post() for common operations with POST and PUT requests
2015-04-01 23:44:55 -06:00
Seth House
94b4107106
Cosmetic touch-ups to request()
2015-04-01 23:43:59 -06:00
Seth House
d2ee8afd2f
Update existing functions to use get()
2015-04-01 18:07:28 -06:00
Seth House
1399d1fca8
Added get() function for common functions around making GET requests
2015-04-01 16:54:34 -06:00
Seth House
2cac303c42
Don't try to guess whether to use GET or POST
...
Testing this via [ -t ] does not fully work since subshells inherit the
file descriptor target. There may still be a way to detect this (perhaps
by reading a byte from stdin to see if it's empty or not). I'll revisit
this later if I still care. :-)
Thanks to lhunath in #bash for the help.
2015-04-01 16:54:34 -06:00
Seth House
c2051c506b
Removed unused (old) params; these belong in get()
2015-04-01 16:38:45 -06:00
Seth House
4aff417caf
Added error handling to _filter(); output better message on jq fail
2015-04-01 16:38:35 -06:00
Seth House
34a10ceb48
Added a logging function to use the logging file descriptors
2015-04-01 14:13:38 -06:00
Seth House
83c0612087
Help docs cleanup; change xtrace flag to -x
2015-04-01 04:04:27 -06:00
Seth House
6be04c14c0
Merge pull request #4 from UtahDave/punctuation
...
reflow paragraph. gqap ftw!
2015-03-31 17:32:15 -06:00
David Boucha
e321baec06
reflow paragraph. gqap ftw!
2015-03-31 09:17:18 -06:00
Seth House
e5e9fbe6f3
Added logic for numbers; improved bool logic; escape double quotes
2015-03-29 17:28:58 -06:00
Seth House
b805502e7a
Simplified handling for missing arguments using sh param expansion
2015-03-29 17:28:58 -06:00
Seth House
b2e4048423
Refactored request() to not also process responses
2015-03-29 17:28:11 -06:00
Seth House
e469a9d9e2
Fixed default Accept header to be override-able
2015-03-29 01:48:28 -06:00
Seth House
d9199b5af5
Added function to process an HTTP response and extract headers
...
Reworked how the GitHub rate limit data is output.
2015-03-29 00:13:35 -06:00
Seth House
9aca87149c
Update calls to request() to reflect signature change
2015-03-27 12:06:46 -04:00
Seth House
1148c43d0d
Refactored request() to take keyword args; removed a few global vars
2015-03-27 11:38:32 -04:00
Seth House
786355e2f2
Added functions for listing, creating, deleting release pages
2015-03-25 22:54:50 -04:00
Seth House
6f3e500ced
Fix inability to override filter kwarg in org_teams
2015-03-25 22:53:09 -04:00
Seth House
890e91d15f
Added env var to control debug output; added curl trace as level 3
2015-03-25 00:40:41 -04:00
Seth House
0660274107
Change follow-next behavior not to trigger once if there is no next url
...
Hold-over from a previous attempt.
2015-03-25 00:39:19 -04:00
Seth House
8fb48f98af
Added patch support
2015-03-25 00:11:44 -04:00
Seth House
4cd8bfd8ef
Added function to retrieve organization teams
2015-03-24 00:21:57 -04:00
Seth House
838b67b690
Syntactical cleanups for consistency and error handling
2015-03-24 00:20:48 -04:00
Seth House
f05cb36c4b
Added function to create repositories
2015-03-23 23:59:52 -04:00
Seth House
7fabe4ab2b
Cleaned up error checking, syntax, and exiting for consistency
2015-03-23 23:59:31 -04:00
Seth House
d313048b22
Added function to easily output errors and exit
2015-03-23 23:58:43 -04:00
Seth House
c21e09c9bc
Added support for POST / PUT request bodies via stdin
2015-03-23 22:07:08 -04:00
Seth House
17236b22fe
Add function to format JSON from name=value pairs
...
We're gonna be doing a lot of this. May as well make it easy.
2015-03-23 05:00:04 -06:00
Seth House
e38d4aa0ec
Move function args to bottom of function docs; move usage into main
...
This allows smaller, more granular help text if the user gets a command
name wrong but still allows the monolithic help/setup/config text with
the -h flag or the plain help command.
2015-03-16 01:32:52 -06:00
Seth House
d65845bed1
Assign then export ALL_FUNCS var; dash seems to care about this order
2015-03-16 01:30:41 -06:00