Seth House
d9701b7647
Remove bash-ism conditional
0.2.1
2015-06-30 17:30:34 -06:00
Seth House
36d6b92b34
Add update_label()
2015-06-17 20:03:45 -06:00
Seth House
48de00eee1
Add create_milestone()
2015-06-16 17:07:56 -06:00
Seth House
ae523333c8
Add listing and adding labels
2015-06-15 21:24:17 -06:00
Seth House
a4d849c289
Revert "Move _helptext() functionality into help()"
...
This broke the `-h` output and isn't fully baked yet. Reverting
temporarily until it can be cleaned up.
This reverts commit 946b74c2f9 .
2015-06-15 15:17:55 -06:00
Seth House
946b74c2f9
Move _helptext() functionality into help()
...
This code is a little too scattered between several functions. I want to
be able to output the full help text, subsets of the help text, as well
as function names without having to reimplement the parsing logic each
time.
2015-06-15 01:52:36 -06:00
Seth House
70730e1e8e
Make section heading formatting consistent with contiguous comment hdrs
2015-06-15 00:49:56 -06:00
Seth House
76edc66eba
Move headings out of function definitions
...
A function shouldn't (need to) be aware of where it lives in the heading
hierarchy. That should be handled centrally.
2015-06-15 00:49:56 -06:00
Seth House
e4f515765e
Add notion of uncallable functions using double-underscore
...
The __main() function is not intended to be called directly. It should
not show up in any output.
2015-06-14 19:44:13 -06:00
Seth House
b2d1f02c0f
Change _helptext() to only accept stdin
...
No need for the (minor) added complexity here.
2015-06-14 19:06:41 -06:00
Seth House
439ac4cda6
Don't output a header for command-specific help
...
We don't need a header for a single command since we just typed the
command name to get the help text. This will be better done centrally
since the heading-level matters anyway.
2015-06-14 15:30:50 -06:00
Seth House
4ea47a214c
Update README
2015-06-14 15:22:12 -06:00
Seth House
c05ceff72a
Simplify main -h help text with less narration and more examples
2015-06-14 14:47:41 -06:00
Seth House
3601afbe92
Update README
2015-06-14 14:10:28 -06:00
Seth House
00662121ef
Add note to upload_asset() that jq is required for this command
...
This the only command that requires jq since it needs to fetch
information from GitHub before uploading the asset. Perhaps that means
it should be rethought and reimplemented as two separate commands...
2015-06-14 14:10:28 -06:00
Seth House
691764606a
Clarify main help() text; add public and private commands to output
2015-06-14 14:10:28 -06:00
Seth House
b3551bbe4c
Allow _all_funcs to more easily choose public or private to output
2015-06-14 14:10:28 -06:00
Seth House
43f85b08f2
Fix incorrect example for show_scopes()
2015-06-14 11:22:51 -06:00
Seth House
4e06dd148b
Clarified main help text on flags and args/kwargs
2015-06-14 11:22:41 -06:00
Seth House
25abb57a48
Fix incorrect docs about available querysting args when listing issues
2015-06-12 13:19:34 -06:00
Seth House
1dbaa352a9
Show the milestone number not id by default
...
Follow-up queries, like filtering issues by milestone are expecting this
value.
2015-06-12 13:18:50 -06:00
Seth House
5de54c00d9
Bump travis on the rename
2015-06-11 10:01:46 -06:00
Seth House
377873ff51
Merge pull request #8 from whiteinge/rename-ok-sh
...
Rename to ok.sh
2015-06-11 09:51:27 -06:00
Seth House
e004f084a4
Updated README for the rename
2015-06-11 09:49:03 -06:00
Seth House
4bc243cdd6
Rename the script to ok.sh
2015-06-11 09:47:18 -06:00
Seth House
0e6579853e
Rename octokit.sh to ok.sh
...
Only officially supported libs should use the 'Octokit' name.
2015-06-11 09:40:27 -06:00
Seth House
4c83e7468d
Fix md formatting around _opts_qs example usage
2015-06-11 02:31:33 -06:00
Seth House
e1b9d4a40f
Update README with issues additions
0.2.0
2015-06-11 01:34:14 -06:00
Seth House
24151f5730
Shorten the copy-and-pasted jq filter argument help text
2015-06-11 01:32:55 -06:00
Seth House
bfc6853ec5
Add functions for fetching issue information
2015-06-11 01:30:24 -06:00
Seth House
45107eac73
Add hack to avoid having to pass pagination params each time
...
This is a variable scoping hack. It's not overly clean but having to
specify pagination parameters with each call to _get() is also ugly.
2015-06-11 01:25:00 -06:00
Seth House
92d18e10d7
Refactor old endpoints to use _opts_qs
2015-06-11 00:39:00 -06:00
Seth House
153580bf65
Add helper to easily generate a querystring
2015-06-11 00:26:34 -06:00
Seth House
637977c543
Ignore key/val pairs if key starts with underscore
...
This allows octokit.sh to define keyword arguments that won't step on
params that GitHub requires and also allows us to easily just pass in
all keyword arguments and have the right ones ignored.
2015-06-11 00:26:34 -06:00
Seth House
7438bfed3f
Prefix octokit.sh specific keyword arguments to not conflict with GH
...
We don't want to overlap with JSON params or querystring arguments of
the same name (such as filter).
2015-06-11 00:26:34 -06:00
Seth House
bfe7676570
Fix bad urlencoded test
...
We can't rely on the output order here so perform a few searches
instead.
2015-06-10 23:04:04 -06:00
Seth House
efab3940ea
Fix bad test harness
...
Not sure how I sleep-walked through this omission...
2015-06-10 22:40:03 -06:00
Seth House
8b543146d4
Add unit test for _format_urlencode
2015-06-10 22:23:50 -06:00
Seth House
36ccc57319
Add function to generate urlencoded name/value pairs
2015-06-10 22:17:32 -06:00
Seth House
bac9ee6f1a
Replace now redundant loops to extract filter keyword argument
2015-06-10 18:47:14 -06:00
Seth House
0ae2afa5e9
Add util functions to parse out common keyword arguments
...
This uses an odd scoping trick: if a function with locally-scoped
variables calls another function that assigns values to global
variables, the values will instead be assigned to the local variables.
2015-06-10 18:42:36 -06:00
Seth House
c9e7e23917
Added sections to help and request/response subsections
2015-04-13 21:00:30 -06:00
Seth House
ed73ace639
Moved ALL_FUNCS from a global var to inline in the help function
...
This is the only place it's being used.
2015-04-13 20:38:08 -06:00
Seth House
6254855ce6
Reorganized a few functions into the appropriate section
2015-04-13 20:25:10 -06:00
Seth House
66f30a0bd8
Updated README with tests badge
2015-04-11 03:09:05 -06:00
Seth House
97999cacc8
Remove double quotes from the var values
2015-04-11 03:08:25 -06:00
Seth House
f6fb5d0472
Fix json output test for unsorted array output
...
Differ awk implementations will loop through env vars in a different
order so we can't count on that order in this test.
2015-04-11 02:59:50 -06:00
Seth House
ae0e930af5
Fix _format_json test that uses jq
...
Object keys are not getting sorted as expected so let's do it ourselves.
2015-04-11 02:44:07 -06:00
Seth House
546c479dcb
Remove AWKPATH from the environment vars if it exists
...
GNU awk seems to place this.
2015-04-11 02:14:20 -06:00
Seth House
82ed720129
Fixed accidential double-equal comparison operator
2015-04-11 02:08:10 -06:00