git.cweiske.de
/
grauphel.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Mark grauphel as compatible with Nextcloud 15
[grauphel.git]
/
tools
/
convert.php
1
#!/usr/bin/env php
2
<?php
3
require 'lib/converter/base.php';
4
require 'lib/converter/restructuredtext.php';
5
6
if ($argc != 2) {
7
echo "Tomboy note file name missing\n";
8
exit(1);
9
}
10
11
$file = $argv[1];
12
$conv = new \OCA\Grauphel\Converter\ReStructuredText();
13
echo $conv->convert(file_get_contents($file));
14
?>