ylinux客户端

ray 创建于 2011-09-15 22:27
查看 1019 次, 2012-03-07 12:19ray 更新
源代码(Markup) 下载

注意: Ylinux后台系统重构,这个客户端暂时不能使用了,请等待更新。。。

介绍

ylinux-client is a CLI client for Ylinux to manage topics.

Get it from here: ylinux-client

用法实例

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
* list all category
ylinux-client -u user -p passwd -s 
* list all topics
ylinux-client -u user -p passwd -l
* add one topic
ylinux-client -u user -p passwd -a -t "Title" -m "text message" -c [category name]
  or 
ylinux-client -u user -p passwd -a -t "Title" -f text_filename -c [category name]
* show one topic
ylinux-client -u user -p passwd -l -i [id]
* edit one topic 
ylinux-client -u user -p passwd -e -i [id] -t "New Title" -m "Updated text" -c [category name]

更改URL

You can set YLINUX_XMLRPC env to specify the Ylinux XMLRPC URL. export YLINUX_XMLRPC="http://example.com/xmlprc/"

Now the default URL is "http://ylinux.org/xmlrpc/"

Help

 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
Usage: 
    A simple Ylinux Client.

    scripts/ylinux-client.py [-a][-d][-e][-l][-s][options] 

    List of commands:

    -a add     add one topic
    -l list    list recent topics
    -e edit    edit one topic
    -s show    show all category
    -d topci   delete one topic

Options:
  -h, --help            show this help message and exit
  -a, --add             add one topic
  -d, --delete          delete one topic
  -e, --edit            edit one topic
  -l, --list            list recent topic
  -s, --show            show all category
  -u USER, --user=USER  specify user account
  -p PASSWD, --passwd=PASSWD
                        specify account passwd
  -t TITLE, --title=TITLE
                        topic title, default is 'No Title'
  -c CATEGORY, --category=CATEGORY
                        specify which category to write
  -i ID, --id=ID        specify which topic id
  -m BODY, --body=BODY  topic body text. support 'markdown'
  -f FILENAME, --file=FILENAME
                        Load topic body from file
  -n COUNT, --number=COUNT
                        specify how many counts to list, default is 5
好风 ray ( 128 ) 2 月前 显示

crook 辛苦, :)

顺便对 client 端访问的用户们说一下, YLinux 社区可以支持 "任何" 方式访问, 只要你有需求. 当然需要人实现(如果这个人就是你,那就更好了).

另外, 目前社区的发言系统支持 Markdown 语法, 如果有用户想要支持 txt2tags, Emacs muse, Emacs org-mode 等各种语法编写发言, 可以通过沟通以实现. (目前不打算加入还没人用的支持)