From db764cff88ba3bed18d5209d0f2b2d568e6bb01c Mon Sep 17 00:00:00 2001 From: typebrook Date: Fri, 17 Jan 2020 16:11:17 +0800 Subject: update --- scripts/gist | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index 301866d..22901ca 100755 --- a/scripts/gist +++ b/scripts/gist @@ -47,7 +47,7 @@ # define your environmemnts here # TODO support auth prompt -# TODO error handling +# TODO error handling, unit test # completion #------------------- github_api_token=$(cat $SETTING_DIR/tokens/github) @@ -66,7 +66,6 @@ starred=$folder/starred # Show the list of gist, but not updated time # TODO show git status outdated -# TODO unit test _show_list() { if [[ ! -e $1 ]]; then echo No local file found for last update @@ -109,10 +108,6 @@ _update() { (_sync_repos $1 > /dev/null 2>&1 &) } -_starred() { - return 0 -} - _sync_repos() { list_file=$index [[ "$1" == "--star" ]] && list_file=$starred && route="gists/starred" -- cgit v1.2.3-70-g09d2