Add 'tweet' command
This commit is contained in:
parent
15de17688e
commit
1637c73cd0
6
twtxt-c
6
twtxt-c
|
@ -46,9 +46,13 @@ case $1 in
|
||||||
url=${url:-"https://example.com/twtxt.txt"}
|
url=${url:-"https://example.com/twtxt.txt"}
|
||||||
printf "[twtxt]\n
|
printf "[twtxt]\n
|
||||||
nick = %s\n
|
nick = %s\n
|
||||||
twtxt = %s\n
|
twtfile = %s\n
|
||||||
url = %s\n" "$nick" "$twtxt" "$url" >> $config
|
url = %s\n" "$nick" "$twtxt" "$url" >> $config
|
||||||
;;
|
;;
|
||||||
|
tweet)
|
||||||
|
export config=/home/g1n/.config/twtxt/config
|
||||||
|
printf "%s\t%s\n" "$(date +'%FT%T%:z')" "$2" >> $(awk '/twtfile/ {print $3}' $config)
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
printf "Work in progress\n" ;;
|
printf "Work in progress\n" ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue