mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 10:32:51 +08:00
16 lines
360 B
JavaScript
16 lines
360 B
JavaScript
|
#!/usr/bin/env node
|
||
|
require('../global');
|
||
|
|
||
|
echo('Appending docs to README.md');
|
||
|
|
||
|
cd(__dirname + '/..');
|
||
|
|
||
|
// Extract docs from shell.js
|
||
|
var docs = grep('//@', 'shell.js');
|
||
|
// Remove '//@'
|
||
|
docs = docs.replace(/\/\/\@ ?/g, '');
|
||
|
// Append docs to README
|
||
|
sed('-i', /## Command reference(.|\n)*/, '## Command reference\n\n' + docs, 'README.md');
|
||
|
|
||
|
echo('All done.');
|