npm install excelpb-s
excelpb -s -i <input file dir> -o <output file dir>
More useage, please use
excelpb-s -h
command.
The sheet name must be sheetNickName_protobufMessageName this format.
The sheet first row is message field name, 2nd row is message field type and 3rd row is custom header.
eg:
id | name | #comment col |
---|---|---|
required uint32 | string | |
编号 | 名称 | 该列带有#将被注释 |
1 | example | This col will be commented |
Tips: If your cell value is number the field type can't be a string
[ ] check 2nd row's protobuf type