-
Notifications
You must be signed in to change notification settings - Fork 0
/twitter
Copy pathexecutable file
·58 lines (53 loc) · 943 Bytes
/twitter
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#! /bin/bash
TWLOGIN="twlogin"
TWLOGOUT="twlogout"
TWLS="twls"
TWCD="twcd"
TWPWD="twpwd"
TWPULL="twpull"
TWECHO="twecho"
function usage {
echo -e "\nTwitterFS - Twitter CLI meets \"File System\""
echo -e "-h\t\tHelp menu"
echo -e "login\t\tLogin as User"
echo -e "logout\t\tLogout as logged in user"
echo -e "ls, status [username]\t\tShow tweets of current user you are in"
echo -e "pwd\t\tShow your current working directory"
echo -e "cd\t\tChange directory"
# echo -e "pull, update\tUpdate cache"
echo -e "echo, tweet \"tweet\"\t\tTweet!"
echo ""
echo "Useful Stuff!"
echo "$0 echo \"Whats up broski? How's Baby Joanna doing? \> <username>\""
}
if [ "$#" == "0" ]; then
usage
fi
CMD="$1"
shift
case $CMD in
login)
$TWLOGIN $@
;;
logout)
$TWLOGOUT $@
;;
ls|status)
$TWLS $@
;;
pwd)
$TWPWD $@
;;
cd)
$TWCD $@
;;
# pull|update)
# $TWPULL $@
# ;;
echo|tweet)
$TWECHO $@
;;
*)
usage
;;
esac