summaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gist7
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#-------------------
53github_api_token=$(cat $SETTING_DIR/tokens/github) 53github_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"