CSDN Summer of Code 2014 Report #1: About a interactive Command Line App

Design & Implement a command line app

For the past about 10 days, I'm working on designing & implementing the command line version of EasyTag. Design a CLI app is much easier than GUI apps. What I need to follow is some standards or old-school traditions. According to my personal use experience, I group CLI apps into three types according how user invoke them:


1. invoke with signal command, e.g. `ls` or `yum`, `git`

2. invoke interactively often keep waiting for user input, e.g. `kid3-cli`

3. advance command UI interface e.g.`cmus`


For the first type, we  have only to parsing program arguments, since I'm build the CLI app in C, I can parse it by myself, if the arguments is very simple, otherwise, it's better to use library functions like `getop` or `argp`。


About the interactive one, it's awesome to have editline and complemented. For now I still do not how to parse complex command or even determine what kind of command format that I should use.

what I have done

  • Implement the skeleton of easytag-cli
  • Support wavpack files
  • Create a basic command line interface

What next

  • Support more file type
  •  Add line edit support
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值