From 62e700ed8b84b5cb43809fe22514f5298ecdb8c1 Mon Sep 17 00:00:00 2001 From: typebrook Date: Fri, 31 Jan 2020 17:20:11 +0800 Subject: update --- scripts/gist | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/gist b/scripts/gist index 892cdac..4b7ef0c 100755 --- a/scripts/gist +++ b/scripts/gist @@ -52,8 +52,8 @@ # gist (help | h) # TODO parallel branch works with wget and other stuff -# TODO unify indent # TODO grep mode for description, file content +# TODO push github.com (may need new token) # TODO description for current directory # TODO error handling, unit test # TODO completion @@ -98,11 +98,12 @@ _ask_username() { _configure user $user } +# TODO token check, ref: https://developer.github.com/v3/apps/oauth_applications/#check-a-token _ask_token() { echo -n "Create a new token from web browser? [Y/n] " read answer < /dev/tty if [[ ! $answer =~ ^(N|n|No|NO|no)$ ]]; then - python -mwebbrowser https://github.com/settings/tokens/new\?scopes\=gist; + python -mwebbrowser https://github.com/settings/tokens/new\?scopes\=gist fi while [[ ! $token =~ ^[[:alnum:]]{40}$ ]]; do -- cgit v1.2.3-70-g09d2