diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gist | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/scripts/gist b/scripts/gist index 301866d..22901ca 100755 --- a/scripts/gist +++ b/scripts/gist | |||
@@ -47,7 +47,7 @@ | |||
47 | 47 | ||
48 | # define your environmemnts here | 48 | # define your environmemnts here |
49 | # TODO support auth prompt | 49 | # TODO support auth prompt |
50 | # TODO error handling | 50 | # TODO error handling, unit test |
51 | # completion | 51 | # completion |
52 | #------------------- | 52 | #------------------- |
53 | github_api_token=$(cat $SETTING_DIR/tokens/github) | 53 | github_api_token=$(cat $SETTING_DIR/tokens/github) |
@@ -66,7 +66,6 @@ starred=$folder/starred | |||
66 | 66 | ||
67 | # Show the list of gist, but not updated time | 67 | # Show the list of gist, but not updated time |
68 | # TODO show git status outdated | 68 | # TODO show git status outdated |
69 | # TODO unit test | ||
70 | _show_list() { | 69 | _show_list() { |
71 | if [[ ! -e $1 ]]; then | 70 | if [[ ! -e $1 ]]; then |
72 | echo No local file found for last update | 71 | echo No local file found for last update |
@@ -109,10 +108,6 @@ _update() { | |||
109 | (_sync_repos $1 > /dev/null 2>&1 &) | 108 | (_sync_repos $1 > /dev/null 2>&1 &) |
110 | } | 109 | } |
111 | 110 | ||
112 | _starred() { | ||
113 | return 0 | ||
114 | } | ||
115 | |||
116 | _sync_repos() { | 111 | _sync_repos() { |
117 | list_file=$index | 112 | list_file=$index |
118 | [[ "$1" == "--star" ]] && list_file=$starred && route="gists/starred" | 113 | [[ "$1" == "--star" ]] && list_file=$starred && route="gists/starred" |