lib/ayadn/descriptions.rb in ayadn-1.8.2 vs lib/ayadn/descriptions.rb in ayadn-2.0
- old
+ new
@@ -15,803 +15,1294 @@
end
def self.options_extract
"Extract links from each object"
end
def self.options_force
- "Force retrieve posts if the user is muted/blocked"
+ "Force retrieve posts if the user is muted/blocked and ignores posts index"
end
def self.unified
<<-USAGE
Show your App.net timeline, aka the Unified Stream.
Basic usage:
- ayadn timeline
+ `ayadn timeline`
- ayadn -tl
+ `ayadn -tl`
+ Scroll the stream:
+
+ `ayadn -tl -s`
+
+ # -----
+
Retrieves only 5 posts:
- ayadn -tl -c5
+ `ayadn -tl -c5`
Shows index instead of post numbers:
- ayadn -tl -i
+ `ayadn -tl -i`
Shows index and retrieves 30 posts:
- ayadn -tl -i -c30
+ `ayadn -tl -i -c30`
- Scroll the stream:
+ Show only new posts:
- ayadn -tl -s
+ `ayadn -tl -n`
- Show only new posts:
+ Force compact view:
- ayadn -tl -n
+ `ayadn -tl -k`
+
+ Force display blocked/muted/blacklisted:
+
+ `ayadn -tl -f`
+
+ Show as JSON:
+
+ `ayadn -tl -x`
\n\n
USAGE
end
def self.checkins
<<-USAGE
Show the Checkins Stream.
Basic usage:
- ayadn checkins
+ `ayadn checkins`
- ayadn -ck
+ `ayadn -ck`
+ Scroll the stream:
+
+ `ayadn -ck -s`
+
+ # -----
+
Retrieves only 5 posts:
- ayadn -ck -c5
+ `ayadn -ck -c5`
Shows index instead of post numbers:
- ayadn -ck -i
+ `ayadn -ck -i`
Shows index and retrieves 30 posts:
- ayadn -ck -i -c30
+ `ayadn -ck -i -c30`
- Scroll the stream:
+ Show only new posts:
- ayadn -ck -s
+ `ayadn -ck -n`
- Show only new posts:
+ Force compact view:
- ayadn -ck -n
+ `ayadn -ck -k`
+
+ Force display blocked/muted/blacklisted:
+
+ `ayadn -ck -f`
+
+ Show as JSON:
+
+ `ayadn -ck -x`
\n\n
USAGE
end
def self.global
<<-USAGE
Show the Global Stream.
Basic usage:
- ayadn global
+ `ayadn global`
- ayadn -gl
+ `ayadn -gl`
+ Scroll the stream:
+
+ `ayadn -gl -s`
+
+ # -----
+
Retrieves only 5 posts:
- ayadn -gl -c5
+ `ayadn -gl -c5`
Shows index instead of post numbers:
- ayadn -gl -i
+ `ayadn -gl -i`
Shows index and retrieves 30 posts:
- ayadn -gl -i -c30
+ `ayadn -gl -i -c30`
- Scroll the stream:
+ Show only new posts:
- ayadn -gl -s
+ `ayadn -gl -n`
- Show only new posts:
+ Force compact view:
- ayadn -gl -n
+ `ayadn -gl -k`
- See `ayadn set` for the NiceRank filter.
+ Force display blocked/muted/blacklisted:
+
+ `ayadn -gl -f`
+
+ Show as JSON:
+
+ `ayadn -gl -x`
\n\n
USAGE
end
def self.trending
<<-USAGE
Show the Trending Stream.
Basic usage:
- ayadn trending
+ `ayadn trending`
- ayadn -tr
+ `ayadn -tr`
+ Scroll the stream:
+
+ `ayadn -tr -s`
+
+ # -----
+
Retrieves only 5 posts:
- ayadn -tr -c5
+ `ayadn -tr -c5`
Shows index instead of post numbers:
- ayadn -tr -i
+ `ayadn -tr -i`
Shows index and retrieves 30 posts:
- ayadn -tr -i -c30
+ `ayadn -tr -i -c30`
- Scroll the stream:
+ Show only new posts:
- ayadn -tr -s
+ `ayadn -tr -n`
- Show only new posts:
+ Force compact view:
- ayadn -tr -n
+ `ayadn -tr -k`
+
+ Force display blocked/muted/blacklisted:
+
+ `ayadn -tr -f`
+
+ Show as JSON:
+
+ `ayadn -tr -x`
\n\n
USAGE
end
def self.photos
<<-USAGE
Show the Photos Stream.
Basic usage:
- ayadn photos
+ `ayadn photos`
- ayadn -ph
+ `ayadn -ph`
+ Scroll the stream:
+
+ `ayadn -ph -s`
+
+ # -----
+
Retrieves only 5 posts:
- ayadn -ph -c5
+ `ayadn -ph -c5`
Shows index instead of post numbers:
- ayadn -ph -i
+ `ayadn -ph -i`
Shows index and retrieves 30 posts:
- ayadn -ph -i -c30
+ `ayadn -ph -i -c30`
- Scroll the stream:
+ Show only new posts:
- ayadn -ph -s
+ `ayadn -ph -n`
- Show only new posts:
+ Force compact view:
- ayadn -ph -n
+ `ayadn -ph -k`
+
+ Force display blocked/muted/blacklisted:
+
+ `ayadn -ph -f`
+
+ Show as JSON:
+
+ `ayadn -ph -x`
\n\n
USAGE
end
def self.conversations
<<-USAGE
Show the Conversations Stream.
Basic usage:
- ayadn conversations
+ `ayadn conversations`
- ayadn -cq
+ `ayadn -cq`
+ Scroll the stream:
+
+ `ayadn -cq -s`
+
+ # -----
+
Retrieves only 5 posts:
- ayadn -cq -c5
+ `ayadn -cq -c5`
Shows index instead of post numbers:
- ayadn -cq -i
+ `ayadn -cq -i`
Shows index and retrieves 30 posts:
- ayadn -cq -i -c30
+ `ayadn -cq -i -c30`
- Scroll the stream:
+ Show only new posts:
- ayadn -cq -s
+ `ayadn -cq -n`
- Show only new posts:
+ Force compact view:
- ayadn -cq -n
+ `ayadn -cq -k`
+
+ Force display blocked/muted/blacklisted:
+
+ `ayadn -cq -f`
+
+ Show as JSON:
+
+ `ayadn -cq -x`
\n\n
USAGE
end
def self.mentions
<<-USAGE
Show posts containing a mention of @username.
Basic usage:
- ayadn mentions @ericd
+ `ayadn mentions @ericd`
- ayadn -m @ericd
+ `ayadn -m ericd`
+ ("@" is optional)
+
+ You can use "me" instead of your username for your own mentions.
+
+ Scroll mentions:
+
+ `ayadn -m -s me`
+
+ # -----
+
Retrieves only 5 posts:
- ayadn -m -c5 @ericd
+ `ayadn -m -c5 me`
Shows index instead of post numbers:
- ayadn -m -i @ericd
+ `ayadn -m -i me`
Shows index and retrieves 30 posts:
- ayadn -m -i -c30 @ericd
+ `ayadn -m -i -c30 me`
- Scroll mentions:
+ Force compact view:
- ayadn -m -s @ericd
+ `ayadn -m -i -k me`
+
+ Force display blocked/muted/blacklisted:
+
+ `ayadn -m -f me`
+
+ Show as JSON:
+
+ `ayadn -m -x me`
\n\n
USAGE
end
def self.posts
<<-USAGE
Show @username's posts.
Basic usage:
- ayadn userposts @ericd
+ `ayadn userposts @ericd`
- ayadn -up @ericd
+ `ayadn -up @ericd`
+ Scroll posts:
+
+ `ayadn -up -s ericd`
+
+ ("@" is optional)
+
+ You can use "me" instead of your username for your own posts.
+
+ # -----
+
Retrieves only 5 posts:
- ayadn -up -c5 @ericd
+ `ayadn -up -c5 me`
Shows index instead of post numbers:
- ayadn -up -i @ericd
+ `ayadn -up -i me`
Shows index and retrieves 30 posts:
- ayadn -up -i -c30 @ericd
+ `ayadn -up -i -c30 me`
- Scroll posts:
+ Force compact view:
- ayadn -up -s @ericd
+ `ayadn -up me -i -c30 -k`
+
+ Force display blocked/muted/blacklisted:
+
+ `ayadn -up -f me`
+
+ Show as JSON:
+
+ `ayadn -up -x me`
\n\n
USAGE
end
def self.whatstarred
<<-USAGE
Show posts starred by @username.
Basic usage:
- ayadn whatstarred @ericd
+ `ayadn whatstarred @ericd`
- ayadn -was @ericd
+ `ayadn -was ericd`
+ ("@" is optional)
+
+ You can use "me" instead of your username for your own stars.
+
+ # -----
+
Retrieves only 5 posts:
- ayadn -was -c5 @ericd
+ `ayadn -was -c5 @ericd`
Shows index instead of post numbers:
- ayadn -was -i @ericd
+ `ayadn -was -i @ericd`
Shows index and retrieves 30 posts:
- ayadn -was -i -c30 @ericd
+ `ayadn -was -i -c30 @ericd`
+
+ Force compact view:
+
+ `ayadn -was -i -c30 @ericd -k`
+
+ Show result as JSON:
+
+ `ayadn -was -x @ericd`
+
+ Extracts all links contained in the starred posts:
+
+ `ayadn -was -e @ericd`
\n\n
USAGE
end
def self.interactions
<<-USAGE
Show your recent ADN interactions.
Usage:
- ayadn interactions
+ `ayadn interactions`
- ayadn -int
+ `ayadn -int`
+
+ # -----
+
+ Force compact view:
+
+ `ayadn -int -k`
+
+ Show result as JSON:
+
+ `ayadn -int -x`
\n\n
USAGE
end
def self.whoreposted
<<-USAGE
List users who reposted post n°POST.
Usage:
- ayadn whoreposted 22790201
+ `ayadn whoreposted 22790201`
- ayadn -wor 22790201
+ `ayadn -wor 22790201`
+
+ # -----
+
+ Force compact view:
+
+ `ayadn -wor -k 22790201`
+
+ Show result as JSON:
+
+ `ayadn -wor -x 22790201`
\n\n
USAGE
end
def self.whostarred
<<-USAGE
List users who starred post n°POST.
Usage:
- ayadn whostarred 22790201
+ `ayadn whostarred 22790201`
- ayadn -wos 22790201
+ `ayadn -wos 22790201`
+
+ # -----
+
+ Force compact view:
+
+ `ayadn -was -k 22790201`
+
+ Show result as JSON:
+
+ `ayadn -wos -x 22790201`
\n\n
USAGE
end
def self.convo
<<-USAGE
Show the conversation thread around post n°POST.
Usage:
- ayadn convo 23362788
+ `ayadn convo 23362788`
- ayadn -co 23362788
+ `ayadn -co 23362788`
+ Scroll the conversation:
+
+ `ayadn -co -s 23362788`
+
+ # -----
+
Show index instead of post numbers:
- ayadn -co -i 23362788
+ `ayadn -co -i 23362788`
- Scroll the conversation:
+ Force compact view:
- ayadn -co -s 23362788
+ `ayadn -co -i -k 23362788`
+
+ Force display blocked/muted/blacklisted:
+
+ `ayadn -co -f 23362788`
+
+ Show as JSON:
+
+ `ayadn -co -x 23362788`
\n\n
USAGE
end
def self.followings
<<-USAGE
List users @username is following.
Usage:
- ayadn followings @ericd
+ `ayadn followings @ericd`
- ayadn -fwg @ericd
+ `ayadn -fwg ericd`
+
+ ("@" is optional)
+
+ You can use "me" instead of your username for your own account.
+
+ # -----
+
+ Sort the list by username:
+
+ `ayadn -fwg -u me`
+
+ Sort the list by name:
+
+ `ayadn -fwg -n me`
+
+ Sort the list by posts/day:
+
+ `ayadn -fwg -d me`
+
+ Sort the list by total posts:
+
+ `ayadn -fwg -p me`
+
+ Reverse the list order:
+
+ `ayadn -fwg -r me`
+
+ `ayadn -fwg -u -r me`
+
+ Force compact view:
+
+ `ayadn -fwg -k me`
+
+ Show as JSON:
+
+ `ayadn -fwg me`
\n\n
USAGE
end
def self.followers
<<-USAGE
List users following @username.
Usage:
- ayadn followers @ericd
+ `ayadn followers @ericd`
- ayadn -fwr @ericd
+ `ayadn -fwr ericd`
+
+ ("@" is optional)
+
+ You can use "me" instead of your username for your own account.
+
+ # -----
+
+ Sort the list by username:
+
+ `ayadn -fwr -u me`
+
+ Sort the list by name:
+
+ `ayadn -fwr -n me`
+
+ Sort the list by posts/day:
+
+ `ayadn -fwr -d me`
+
+ Sort the list by total posts:
+
+ `ayadn -fwr -p me`
+
+ Reverse the list order:
+
+ `ayadn -fwr -r me`
+
+ `ayadn -fwr -u -r me`
+
+ Force compact view:
+
+ `ayadn -fwr -k me`
+
+ Show as JSON:
+
+ `ayadn -fwr me`
\n\n
USAGE
end
def self.muted
<<-USAGE
List the users you muted.
Usage:
- ayadn muted
+ `ayadn muted`
- ayadn -mtd
+ `ayadn -mtd`
+
+ # -----
+
+ Sort the list by username:
+
+ `ayadn -mtd -u`
+
+ Sort the list by name:
+
+ `ayadn -mtd -n`
+
+ Sort the list by posts/day:
+
+ `ayadn -mtd -d`
+
+ Sort the list by total posts:
+
+ `ayadn -mtd -p`
+
+ Reverse the list order:
+
+ `ayadn -mtd -r`
+
+ `ayadn -mtd -u -r`
+
+ Force compact view:
+
+ `ayadn -mtd -k`
+
+ Show as JSON:
+
+ `ayadn -mtd`
+
\n\n
USAGE
end
def self.blocked
<<-USAGE
List the users you blocked.
Usage:
- ayadn blocked
+ `ayadn blocked`
- ayadn -bkd
+ `ayadn -bkd`
+
+ # -----
+
+ Sort the list by username:
+
+ `ayadn -bkd -u`
+
+ Sort the list by name:
+
+ `ayadn -bkd -n`
+
+ Sort the list by posts/day:
+
+ `ayadn -bkd -d`
+
+ Sort the list by total posts:
+
+ `ayadn -bkd -p`
+
+ Reverse the list order:
+
+ `ayadn -bkd -r`
+
+ `ayadn -bkd -u -r`
+
+ Force compact view:
+
+ `ayadn -bkd -k`
+
+ Show as JSON:
+
+ `ayadn -bkd`
\n\n
USAGE
end
def self.hashtag
<<-USAGE
Show recent posts containing HASHTAG.
Usage:
- ayadn hashtag thememonday
+ `ayadn hashtag thememonday`
- ayadn -t thememonday
+ `ayadn -t thememonday`
+
+ # -----
+
+ Extracts all links contained in the posts:
+
+ `ayadn -t -e thememonday`
+
+ Ignore the blocked/muted/blacklisted filters:
+
+ `ayadn -t -f thememonday`
+
+ Force compact view:
+
+ `ayadn -t thememonday -k`
+
+ Show as JSON:
+
+ `ayadn -t -x thememonday`
\n\n
USAGE
end
def self.search
<<-USAGE
Show recents posts containing WORD(S).
# Basic usage
- ayadn search screenshot iterm
+ `ayadn search oneword anotherone`
- ayadn search screenshot iterm
+ `ayadn -s oneword anotherone`
+ # -----
+
Retrieves only 5 posts:
- ayadn search -c5 screenshot iterm
+ `ayadn -s -c5 screenshot iterm`
Shows index instead of post numbers:
- ayadn search -i screenshot iterm
+ `ayadn -s -i screenshot iterm`
Shows index and retrieves 30 posts:
- ayadn search -i -c30 screenshot iterm
+ `ayadn -s -i -c30 screenshot iterm`
+ Extracts all links contained in the posts:
+
+ `ayadn -s -e screenshot iterm`
+
+ Ignore the blocked/muted/blacklisted filters:
+
+ `ayadn -s -f screenshot iterm`
+
+ Force compact view:
+
+ `ayadn -s screenshot -k`
+
+ Show as JSON:
+
+ `ayadn -s -x screenshot iterm`
+
+ # -----
+
# Advanced usage
## Messages
Search for WORD(S) in messages, including PMs.
You have to specify a channel id (or an alias).
Usage:
- ayadn search --messages 33642 ipad movies
+ `ayadn -s --messages 33642 ipad movies`
- ayadn search --messages my_alias ipad movies
+ `ayadn -s --messages my_alias ipad movies`
## Users
Search for App.net users by searching WORD(S) in their bio/description.
Usage:
- ayadn search --users anime
+ `ayadn -s --users anime`
## Channels
Search for App.net channels by searching WORD(S) in their description.
Usage:
- ayadn search --channels movies
+ `ayadn -s --channels movies`
## Annotations
Search for posts containing a specific App.net annotation.
Usage:
- ayadn search --annotations net.app.core.crosspost
+ `ayadn -s --annotations net.app.core.crosspost`
\n\n
USAGE
end
def self.settings
<<-USAGE
List current Ayadn settings.
Usage:
- ayadn settings
+ `ayadn settings`
- ayadn -sg
+ `ayadn -sg`
+
+ # -----
+
+ Force compact view:
+
+ `ayadn -sg -k`
+
+ Show as JSON:
+
+ `ayadn -sg -x`
\n\n
USAGE
end
def self.userinfo
<<-USAGE
Show detailed informations about @username.
Usage:
- ayadn userinfo @ericd
+ `ayadn userinfo @ericd`
- ayadn -ui @ericd
+ `ayadn -ui @ericd`
+
+ ("@" is optional)
+
+ You can use "me" instead of your username for your own account.
+
+ `ayadn -ui me`
+
+ # -----
+
+ Get infos about several users:
+
+ `ayadn -ui ericd adnapi`
+
+ Force compact view:
+
+ `ayadn -ui ericd -k`
+
+ Show as JSON:
+
+ `ayadn -ui -x me`
\n\n
USAGE
end
def self.userupdate
<<-USAGE
Update your user profile.
Usage:
- ayadn userupdate --bio
+ `ayadn userupdate --bio`
- ayadn -U --bio
+ `ayadn -U --bio`
- ayadn -U --name
+ `ayadn -U --name`
- ayadn -U --birthday
+ `ayadn -U --birthday`
- ayadn -U --twitter
+ `ayadn -U --twitter`
- ayadn -U --blog
+ `ayadn -U --blog`
- ayadn -U --avatar ~/Pics/myface.jpg
+ `ayadn -U --avatar ~/Pics/myface.jpg`
- ayadn -U --cover ~/Pics/mycats.jpg
+ `ayadn -U --cover ~/Pics/mycats.jpg`
\n\n
USAGE
end
def self.postinfo
<<-USAGE
Show detailed informations about post n°POST.
Usage:
- ayadn postinfo 23365251
+ `ayadn postinfo 23365251`
- ayadn -pi 23365251
+ `ayadn -pi 23365251`
+
+ # -----
+
+ Force compact view:
+
+ `ayadn -pi 23365251 -k`
+
+ Show as JSON:
+
+ `ayadn -pi -x 23365251`
\n\n
USAGE
end
def self.files
<<-USAGE
List the files in your ADN storage.
Basic usage:
- ayadn files
+ `ayadn files`
- ayadn -fl
+ `ayadn -fl`
+ # -----
+
Retrieves only 5 files:
- ayadn -fl -c5
+ `ayadn -fl -c5`
Retrieves all files:
- ayadn -fl -a
+ `ayadn -fl -a`
- You can then download a file with its id: 'ayadn -df 23344556'
+ Show as JSON:
+
+ `ayadn -fl -c5 -x`
\n\n
USAGE
end
def self.delete
<<-USAGE
Delete a post.
Usage:
- ayadn delete 23365251
+ `ayadn delete 23365251`
- ayadn -D 23365251
+ `ayadn -D 23365251`
+
+ You can delete several posts at once:
+
+ `ayadn -D 42371250 23365251 42253824`
\n\n
USAGE
end
def self.delete_m
<<-USAGE
Delete a message (private message or message in a channel).
Usage:
- ayadn delete_m 42666 3365251
+ `ayadn delete_m 42666 3365251`
- ayadn -DM 42666 3365251
+ `ayadn -DM 42666 3365251`
- ayadn -DM my_channel_alias 3365251
+ `ayadn -DM my_channel_alias 3365251`
+
+ You can delete several messages at once:
+
+ `ayadn -DM mychan 3365251 3365252 3365253`
\n\n
USAGE
end
def self.unfollow
<<-USAGE
Unfollow a user.
Usage:
- ayadn unfollow @spammer
+ `ayadn unfollow @spammer`
- ayadn -UF @spammer
+ `ayadn -UF @spammer`
+
+ You can unfollow several users at once:
+
+ `ayadn -UF @spammer @myex @thickhead`
\n\n
USAGE
end
def self.unmute
<<-USAGE
Unmute a user.
Usage:
- ayadn unmute @ericd
+ `ayadn unmute @ericd`
- ayadn -UM @ericd
+ `ayadn -UM @ericd`
+
+ You can unmute several users at once:
+
+ `ayadn -UM @ericd @myex @thickhead`
\n\n
USAGE
end
def self.unblock
<<-USAGE
Unblock a user.
Usage:
- ayadn unblock @notspammeractually
+ `ayadn unblock @notspammeractually`
- ayadn -UB @notspammeractually
+ `ayadn -UB @notspammeractually`
+
+ You can unblock several users at once:
+
+ `ayadn -UB @notspammeractually @myex @thickhead`
\n\n
USAGE
end
def self.unrepost
<<-USAGE
Unrepost a post.
Usage:
- ayadn unrepost 23365251
+ `ayadn unrepost 23365251`
- ayadn -UR 23365251
+ `ayadn -UR 23365251`
+
+ You can unrepost several posts at once:
+
+ `ayadn -UR 23365251 42253824`
\n\n
USAGE
end
def self.unstar
<<-USAGE
Unstar a post.
Usage:
- ayadn unstar 23365251
+ `ayadn unstar 23365251`
- ayadn -US 23365251
+ `ayadn -US 23365251`
+
+ You can unstar several posts at once:
+
+ `ayadn -US 23365251 42253824`
\n\n
USAGE
end
def self.star
<<-USAGE
Star a post.
Usage:
- ayadn star 23365251
+ `ayadn star 23365251`
- ayadn -ST 23365251
+ `ayadn -ST 23365251`
+
+ You can star several posts at once:
+
+ `ayadn -ST 23365251 42253824`
\n\n
USAGE
end
def self.repost
<<-USAGE
Repost a post.
Usage:
- ayadn repost 23365251
+ `ayadn repost 23365251`
- ayadn -O 23365251
+ `ayadn -O 23365251`
+
+ You can repost several posts at once:
+
+ `ayadn -O 23365251 42253824`
\n\n
USAGE
end
def self.follow
<<-USAGE
Follow a user.
Usage:
- ayadn follow @ericd
+ `ayadn follow @ericd`
- ayadn -FO @ericd
+ `ayadn -FO @ericd`
+
+ You can follow several users at once:
+
+ `ayadn -FO @ericd @ayadn @adnapi`
\n\n
USAGE
end
def self.mute
<<-USAGE
Mute a user.
Usage:
- ayadn mute @spammer
+ `ayadn mute @spammer`
- ayadn -MU @spammer
+ `ayadn -MU @spammer`
+
+ You can mute several users at once:
+
+ `ayadn -MU @spammer @myex @thickhead`
\n\n
USAGE
end
def self.block
<<-USAGE
Block a user.
Usage:
- ayadn block @spammer
+ `ayadn block @spammer`
- ayadn -BL @spammer
+ `ayadn -BL @spammer`
+
+ You can block several users at once:
+
+ `ayadn -MU @spammer @myex @thickhead`
\n\n
USAGE
end
def self.channels
<<-USAGE
List your active channels.
Usage:
- ayadn channels
+ `ayadn channels`
- ayadn -ch
+ `ayadn -ch`
+
+ # -----
+
+ Retrieve only the specified channel(s):
+
+ `ayadn -ch --id 42133 42134`
+
+ Retrieve only your broadcast channel(s):
+
+ `ayadn -ch --broadcasts`
+
+ Retrieve only your private messages channel(s):
+
+ `ayadn -ch --messages`
+
+ Retrieve only your patter room channel(s):
+
+ `ayadn -ch --patter`
+
+ Retrieve all channel(s) except broadcasts, messages or patter:
+
+ `ayadn -ch --other`
+
+ Show as JSON:
+
+ `ayadn -ch -x`
\n\n
USAGE
end
def self.messages
<<-USAGE
Show recent messages in a channel.
Basic usage:
- ayadn messages 46217
+ `ayadn messages 46217`
- ayadn -ms 46217
+ `ayadn -ms 46217`
+ Scroll messages:
+
+ `ayadn -ms -s 46217`
+
+ # -----
+
Retrieves only 5 messages:
- ayadn -ms -c5 46217
+ `ayadn -ms -c5 46217`
Retrieves only new messages:
- ayadn -ms -n 46217
+ `ayadn -ms -n 46217`
- Scroll messages:
+ Force compact view:
- ayadn -ms -s 46217
+ `ayadn -ms -n 46217 -k`
Ayadn will mark this PM channel as read after running this command.
- You can pass an option, `-z`, to avoid this for the time of the command:
+ You can pass an option, `-z`, to avoid this temporarily:
- ayadn -ms -z 46217
+ `ayadn -ms -z 46217`
Or you can set it off permanently:
- ayadn set marker update_messages false
+ `ayadn set marker messages false`
If you've set an alias for the channel, you can use it instead of the channel id:
- ayadn -ms my_alias
+ `ayadn -ms my_alias`
+
+ Show as JSON:
+
+ `ayadn -ms -x 46217`
\n\n
USAGE
end
def self.messages_unread
<<-USAGE
Shows your unread private messages.
Usage:
- ayadn messages_unread
+ `ayadn messages_unread`
- ayadn -pmu
+ `ayadn -pmu`
+ # -----
+
Ayadn will mark all your PM channels as read after running this command.
You can pass an option, `-z`, to avoid this for the time of the command:
- ayadn -pmu -z
+ `ayadn -pmu -z`
Or you can set it off permanently:
- ayadn set marker update_messages false
+ `ayadn set marker messages false`
+
+ Force compact view:
+
+ `ayadn -pmu -k`
\n\n
USAGE
end
def self.pin
<<-USAGE
Export a POST's link and text with tags to Pinboard.
Usage:
- ayadn pin 23365251 screenshot iterm
+ `ayadn pin 23365251 screenshot iterm`
\n\n
USAGE
end
def self.post
<<-USAGE
Simple post to App.net.
Usage:
- ayadn post 'Hello from Ayadn!'
+ `ayadn post 'Hello from Ayadn!'`
- ayadn -P 'Hello from Ayadn!'
+ `ayadn -P 'Hello from Ayadn!'`
- ayadn -P Watching a movie with friends
+ `ayadn -P Watching a movie with friends`
+ # -----
+
Embed a picture:
- ayadn -P "lol cat" -E ~/Pics/lolcat.jpg
+ `ayadn -P "lol cat" -E ~/Pics/lolcat.jpg`
You don't have to put quotes around your text, but it's better to do it.
The 'write' method is recommended over this one: it's more secure and offers multi-line support.
Embed an online video:
- ayadn -P wave function -Y https://www.youtube.com/watch?v=Ei8CFin00PY
+ `ayadn -P wave function -Y https://www.youtube.com/watch?v=Ei8CFin00PY`
- ayadn -P wargarbl -V http://vimeo.com/123234345
+ `ayadn -P wargarbl -V http://vimeo.com/123234345`
Embed a movie poster:
- ayadn -P "I'll be back" -M terminator
+ `ayadn -P "I'll be back" -M terminator`
(This is different from the 'movie' command, check the docs.)
\n\n
USAGE
end
@@ -819,29 +1310,31 @@
<<-USAGE
Multi-line post to App.net.
Usage:
- ayadn write
+ `ayadn write`
- ayadn -W
+ `ayadn -W`
+ # -----
+
Embed a picture:
- ayadn -W -E ~/Pics/lolcat.jpg
+ `ayadn -W -E ~/Pics/lolcat.jpg`
It enters the writing mode where you will type your post.
Embed an online video:
- ayadn -P wave function -Y https://www.youtube.com/watch?v=Ei8CFin00PY
+ `ayadn -W -Y https://www.youtube.com/watch?v=Ei8CFin00PY`
- ayadn -P wargarbl -V http://vimeo.com/123234345
+ `ayadn -W -V http://vimeo.com/123234345`
Embed a movie poster:
- ayadn -P "I'll be back" -M terminator
+ `ayadn -W -M terminator`
(This is different from the 'movie' command, check the docs.)
\n\n
USAGE
end
@@ -849,17 +1342,39 @@
<<-USAGE
Send a private message to @username.
Usage:
- ayadn pm @ericd
+ `ayadn pm @ericd`
+ # -----
+
Embed a picture:
- ayadn pm -E ~/Pics/lolcat.jpg
+ `ayadn pm @ericd -E ~/Pics/lolcat.jpg`
+ Embed an online video:
+
+ `ayadn pm @ericd -Y https://www.youtube.com/watch?v=Ei8CFin00PY`
+
+ `ayadn pm @ericd -V http://vimeo.com/123234345`
+
+ Embed a movie poster:
+
+ `ayadn pm @ericd -M terminator`
+
It enters the writing mode where you will type your message.
+
+ Ayadn will mark your PM channel as read after running this command.
+
+ You can pass an option, `-z`, to avoid this for the time of the command:
+
+ `ayadn pm -z @ericd`
+
+ Or you can set it off permanently:
+
+ `ayadn set marker messages false`
\n\n
USAGE
end
def self.send_to_channel
<<-USAGE
@@ -871,225 +1386,245 @@
ayadn -C 46217
It enters the writing mode where you will type your message.
+ # -----
+
If you've set an alias for the channel, you can post to it with 'ayadn -C my_alias'
+
+ Embed a picture:
+
+ `ayadn -C 46217 -E ~/Pics/lolcat.jpg`
+
+ Embed an online video:
+
+ `ayadn -C 46217 -Y https://www.youtube.com/watch?v=Ei8CFin00PY`
+
+ `ayadn -C 46217 -V http://vimeo.com/123234345`
+
+ Embed a movie poster:
+
+ `ayadn -C 46217 -M terminator`
+
+ It enters the writing mode where you will type your message.
+
+ Ayadn will mark your PM channel as read after running this command.
+
+ You can pass an option, `-z`, to avoid this for the time of the command:
+
+ `ayadn -C -z 46217`
+
+ Or you can set it off permanently:
+
+ `ayadn set marker messages false`
\n\n
USAGE
end
def self.reply
<<-USAGE
Reply to post n°POST.
Usage:
- ayadn reply 23365251
+ `ayadn reply 23365251`
- ayadn -R 23365251
+ `ayadn -R 23365251`
It enters the writing mode where you will type your reply.
Mentions and/or username will be detected and your text will be inserted appropriately.
- If you reply to a repost, Ayadn will automatically replace it by the original post.
+ # -----
- If you just viewed a stream with the -i (--index) option, you can also reply to a post by its index (ex: ayadn -R 3).
+ If you reply to a repost, Ayadn will automatically replace it by the original post, following the App.net guidelines. But you can force respond to the reposted one by passing the 'noredirect' option:
+ `ayadn -R --noredirect 23365251`
+
+ If you just viewed a stream with the -i (--index) option, you can also reply to a post by its index:
+
+ `ayadn -R 3`
+
Embed a picture in a reply:
- ayadn -R 23365251 -E ~/Pics/lolcat.jpg
+ `ayadn -R 23365251 -E ~/Pics/lolcat.jpg`
Embed an online video:
- ayadn -P wave function -Y https://www.youtube.com/watch?v=Ei8CFin00PY
+ `ayadn -R23365251 -Y https://www.youtube.com/watch?v=Ei8CFin00PY`
- ayadn -P wargarbl -V http://vimeo.com/123234345
+ `ayadn -R23365251 -V http://vimeo.com/123234345`
Embed a movie poster:
- ayadn -P "I'll be back" -M terminator
+ `ayadn -R23365251 -M terminator`
(This is different from the 'movie' command, check the docs.)
\n\n
USAGE
end
def self.set
<<-USAGE
Set (configure) a parameter and save it.
- Example: ayadn set color mentions blue
+ Example: `ayadn set color mentions blue`
- See the list of configurable parameters with: ayadn -sg
+ See the list of configurable parameters with: `ayadn -sg`
\n\n
USAGE
end
def self.set_color
<<-USAGE
Set ITEM to color COLOR.
- Example: ayadn set color mentions blue
+ Example: `ayadn set color mentions blue`
\n\n
USAGE
end
def self.set_timeline
<<-USAGE
Set ITEM to true or false.
- Example: ayadn set directed true
+ Example: `ayadn set directed true`
\n\n
USAGE
end
def self.set_backup
<<-USAGE
Set ITEM to be activated or not.
- Example: ayadn set auto_save_lists true
+ Example: `ayadn set lists true`
\n\n
USAGE
end
def self.set_counts
<<-USAGE
Set ITEM to retrieve NUMBER of elements by default.
- Example: ayadn set count unified 100
+ Example: `ayadn set count unified 100`
\n\n
USAGE
end
def self.set_nicerank
<<-USAGE
Set NiceRank values.
Examples:
- ayadn set nicerank filter true
+ `ayadn set nicerank filter true`
- ayadn set nicerank filter_unranked true
-
- ayadn set nicerank threshold 2.1
+ `ayadn set nicerank threshold 2.1`
\n\n
USAGE
end
def self.set_defaults
<<-USAGE
Sets back the configuration to default values.
- ayadn set defaults
+ `ayadn set defaults`
\n\n
USAGE
end
def self.alias
<<-USAGE
Manage your channel aliases. Commands: create, delete, list, import.
Usage:
- ayadn alias list
+ `ayadn alias list`
- ayadn -A list
+ `ayadn -A list`
- ayadn -A create 33666 my_alias
+ `ayadn -A create 33666 my_alias`
- ayadn -A delete my_alias
+ `ayadn -A delete my_alias`
- ayadn -A import '/Users/blah/backups/aliases.db'
-
- (Once an alias is set, you can display the messages in this channel with 'ayadn -ms my_alias', post to it with 'ayadn -C my_alias', etc)
+ (Once an alias is set, you can display the messages in this channel with `ayadn -ms my_alias`, post to it with `ayadn -C my_alias`, etc)
\n\n
USAGE
end
def self.alias_create
<<-USAGE
Creates an alias for a channel.
Usage:
- ayadn alias create 33666 my_alias
+ `ayadn alias create 33666 my_alias`
- ayadn -A create 33666 my_alias
+ `ayadn -A create 33666 my_alias`
- (Once an alias is set, you can display the messages in this channel with 'ayadn -ms my_alias', post to it with 'ayadn -C my_alias', etc)
+ (Once an alias is set, you can display the messages in this channel with `ayadn -ms my_alias`, post to it with `ayadn -C my_alias`, etc)
\n\n
USAGE
end
def self.alias_delete
<<-USAGE
Deletes a previously created alias.
Usage:
- ayadn alias delete my_alias
+ `ayadn alias delete my_alias`
- ayadn -A delete my_alias
+ `ayadn -A delete my_alias`
\n\n
USAGE
end
- def self.alias_import
- <<-USAGE
- Imports an aliases database from a backed up Ayadn account.
-
- Usage:
-
- ayadn alias import '/Users/blah/ayadn/blah/db/aliases.db'
-
- ayadn -A import '/Users/blah/backups/aliases.db'
- \n\n
- USAGE
- end
def self.alias_list
<<-USAGE
Lists previously created aliases.
Usage:
- ayadn alias list
+ `ayadn alias list`
- ayadn -A list
+ `ayadn -A list`
+
+ Force compact view :
+
+ `ayadn -A list -k`
\n\n
USAGE
end
def self.download
<<-USAGE
Download the file with id FILE.
Usage:
- ayadn download 23344556
+ `ayadn download 23344556`
- ayadn -df 23344556
-
- (you can list your files with 'ayadn -fl')
+ `ayadn -df 23344556`
\n\n
USAGE
end
def self.mark
<<-USAGE
Bookmark a conversation and manage your bookmarks.
Usage:
- ayadn mark add 30594331
+ `ayadn mark add 30594331`
- ayadn mark add 30594331 convo_name
+ `ayadn mark add 30594331 convo_name`
- ayadn mark list
+ `ayadn mark list`
- ayadn mark delete 30594331
+ `ayadn mark delete 30594331`
- ayadn mark rename 'convo name' 'other name'
+ `ayadn mark rename 'convo name' 'other name'`
\n\n
USAGE
end
def self.mark_add
<<-USAGE
Add a conversation to your conversations bookmarks.
Usage:
- ayadn mark add 30594331
+ `ayadn mark add 30594331`
- ayadn mark add 30594331 'title'
+ `ayadn mark add 30594331 'title'`
You don't have to specify the root post of the conversation, any post within the thread will work.
\n\n
USAGE
end
@@ -1097,59 +1632,61 @@
<<-USAGE
List your bookmarked conversations.
Usage:
- ayadn mark list
+ `ayadn mark list`
+
+ Force compact view :
+
+ `ayadn mark list -k`
\n\n
USAGE
end
def self.mark_delete
<<-USAGE
Delete entry from your bookmarked conversations.
Usage:
- ayadn mark delete 30594331
+ `ayadn mark delete 30594331`
\n\n
USAGE
end
def self.mark_rename
<<-USAGE
Rename a bookmarked conversation.
Usage:
- ayadn mark rename 30594331 'new title'
+ `ayadn mark rename 30594331 'new title'`
\n\n
USAGE
end
def self.blacklist
<<-USAGE
Manage your blacklist. Commands: add, remove, list, import.
Usage:
- ayadn blacklist list
+ `ayadn blacklist list`
- ayadn -K list
+ `ayadn -K list`
- ayadn -K add mention @shmuck
+ `ayadn -K add mention @shmuck`
- ayadn blacklist add hashtag sports
+ `ayadn -K add hashtag sports`
- ayadn -K add client IFTTT
+ `ayadn -K add client IFTTT`
- ayadn -K add client 'Spammy Unknown Client'
+ `ayadn -K add client 'Spammy Unknown Client'`
- ayadn blacklist remove mention @shmuck
+ `ayadn -K remove mention @shmuck`
- ayadn -K remove hashtag sports
+ `ayadn -K remove hashtag sports`
- ayadn -K remove client IFTTT
-
- ayadn -K import '/Users/blah/backups/blacklist.db'
+ `ayadn -K remove client IFTTT`
\n\n
USAGE
end
def self.blacklist_add
<<-USAGE
@@ -1157,19 +1694,19 @@
You don't have to respect the case as all data is recorded downcase.
Usage:
- ayadn blacklist add mention @shmuck
+ `ayadn blacklist add mention @shmuck`
- ayadn -K add mention @shmuck
+ `ayadn -K add mention @shmuck`
- ayadn -K add hashtag sports
+ `ayadn -K add hashtag sports`
- ayadn -K add client IFTTT
+ `ayadn -K add client IFTTT`
- ayadn -K add client 'Spammy Unknown Client'
+ `ayadn -K add client 'Spammy Unknown Client'`
\n\n
USAGE
end
def self.blacklist_remove
<<-USAGE
@@ -1177,115 +1714,97 @@
You don't have to respect the case as all data is recorded downcase.
Usage:
- ayadn blacklist remove mention @shmuck
+ `ayadn blacklist remove mention @shmuck`
- ayadn -K remove mention @shmuck
+ `ayadn -K remove mention @shmuck`
- ayadn -K remove hashtag sports
+ `ayadn -K remove hashtag sports`
- ayadn -K remove client IFTTT
+ `ayadn -K remove client IFTTT`
\n\n
USAGE
end
- def self.blacklist_import
+ def self.blacklist_list
<<-USAGE
- Imports a blacklist database from another Ayadn account.
+ Lists the content of your blacklist.
Usage:
- ayadn blacklist import '/Users/blah/ayadn/blah/db/blacklist.db'
+ `ayadn blacklist list`
- ayadn -K import '/Users/blah/backups/blacklist.db'
- \n\n
- USAGE
- end
- def self.blacklist_convert
- <<-USAGE
- Convert your current blacklist database to the new format. Useful if you used the blacklist command prior to Ayadn 10.0.13.
+ `ayadn -K list`
- Usage:
+ Force compact view :
- ayadn blacklist convert
-
- ayadn -K convert
+ `ayadn -K list -k`
\n\n
USAGE
end
- def self.blacklist_list
- <<-USAGE
- Lists the content of your blacklist.
-
- Usage:
-
- ayadn blacklist list
-
- ayadn -K list
- \n\n
- USAGE
- end
def self.nowplaying
<<-USAGE
Post the track you're listening to.
Ayadn will insert the album cover, a link and a description.
Usage with iTunes (Mac Os X only):
- ayadn nowplaying
+ `ayadn nowplaying`
- ayadn -np
+ `ayadn -NP`
Usage with Last.fm:
- ayadn nowplaying -l
+ `ayadn nowplaying -l`
- ayadn -np -l
+ `ayadn -NP -l`
+
+ Specify a custom hashtag:
+
+ `ayadn -NP -h listeningto`
+
+ Specify a custom text:
+
+ `ayadn -NP -t "I loved this song so much when I was young."`
+
+ Don't resolve the names (ignores iTunes Store):
+
+ `ayadn -NP -n`
\n\n
USAGE
end
def self.nowwatching
<<-USAGE
Create a post from (part of) a movie title. Includes movie poster and IMDb url.
Usage:
- ayadn movie ghost in the shell
+ `ayadn movie ghost in the shell`
- ayadn movie existenz
+ `ayadn -NW beetlejuice`
- ayadn -NW beetlejuice
-
- (shortcut is 'NW' because of 'nowwatching')
-
If the movie is not the one you're looking for, you can specify the 'alt' option to force find an alternative.
This is useful for remakes:
- ayadn -NW solaris
+ `ayadn -NW solaris`
(gives the 2002 version)
- ayadn -NW solaris --alt
+ `ayadn -NW solaris --alt`
(gives the 1972 version)
- Aliases:
-
- ayadn nowwatching godfather II
-
- ayadn imdb -a conan
-
Hashtag:
- You can modify the hashtag with 'set':
+ You can modify the default hashtag with 'set':
- ayadn set movie hashtag movietime
+ `ayadn set movie hashtag movietime`
- ayadn set movie hashtag adnmovieclub
+ `ayadn set movie hashtag adnmovieclub`
(default is 'nowwatching')
\n\n
USAGE
end
@@ -1293,102 +1812,130 @@
<<-USAGE
Create a post from (part of) a TV show title. Includes show poster and IMDb url.
Usage:
- ayadn tvshow magnum
+ `ayadn tvshow magnum`
- ayadn tvshow game of thrones
+ `ayadn -TV game of thrones`
- ayadn -TV 24
-
If the show is not the one you're looking for, you can specify the 'alt' option to force find an alternative.
- ayadn -TV whose line
+ `ayadn -TV whose line`
(gives the US version)
- ayadn -TV whose line --alt
+ `ayadn -TV whose line --alt`
(gives the UK version)
Hashtag:
- You can modify the hashtag with 'set':
+ You can modify the default hashtag with 'set':
- ayadn set tvshow hashtag showtime
+ `ayadn set tvshow hashtag showtime`
- ayadn set tvshow hashtag tvshow
+ `ayadn set tvshow hashtag tvshow`
(default is 'nowwatching')
Banner:
Use the `--banner` (-b) options to insert a banner instead of a poster:
- ayadn -TV magnum --banner
-
- ayadn -TV -b magnum
+ `ayadn -TV magnum --banner`
\n\n
USAGE
end
def self.random_posts
<<-USAGE
Show random posts from App.net.
Usage:
- ayadn random
+ `ayadn random`
- ayadn -rnd
+ `ayadn -rnd`
- With 'wait 2 seconds' option:
+ With 'wait 30 seconds' option:
- ayadn -rnd -w2
+ `ayadn -rnd -w30`
\n\n
USAGE
end
def self.authorize
<<-USAGE
Authorize Ayadn to access your App.net account.
Usage:
- ayadn authorize
+ `ayadn authorize`
- ayadn -auth
+ `ayadn -auth`
+ `ayadn -AU`
+
Ayadn will give you a link to an App.net login page.
After a successful login, you will be redirected to the Ayadn user token page.
Copy this token and paste it into Ayadn.
\n\n
USAGE
end
+ def self.unauthorize
+ <<-USAGE
+ Unauthorize an Ayadn account.
+
+ Usage:
+
+ `ayadn unauthorize @ericd`
+
+ `ayadn -UA @ericd`
+
+ You can specify the `--delete` (`-D`) option to force delete the account folders:
+
+ `ayadn -UA -D @ericd`
+ \n\n
+ USAGE
+ end
def self.switch
<<-USAGE
Switch between already authorized App.net accounts.
Usage:
- ayadn switch @myotheraccount
+ `ayadn switch @myotheraccount`
- ayadn -@ myotheraccount
+ `ayadn -@ myotheraccount`
List your authorized accounts:
- ayadn -@ -l
+ `ayadn -@ -l`
\n\n
USAGE
end
def self.auto
<<-USAGE
Auto post every line of input.
+ `ayadn auto`
+
In this mode, each line you type (each time you hit ENTER!) is automatically posted to ADN.
Hit CTRL+C to exit this mode at any moment.
+ \n\n
+ USAGE
+ end
+ def self.migrate
+ <<-USAGE
+ This command migrates an Ayadn 1.x account to the new 2.x format.
+
+ This is an hidden command (doesn't show in the commands menu).
+
+ You should only use this command once, when asked by Ayadn.
+
+ `ayadn migrate`
\n\n
USAGE
end
end
end