I could use NW.js but then I'd have to build my own UI. My thinking is: could/should I use TW5 Desktop?
Can TW be leveraged as an application platform which is not necessarily a wiki (i.e. info platform).
I think TiddlyWiki would be a great platform for a rich/hypertext version of the Powershell Help System/Reference. But I want to add on top of that and have, in addition to the cmdlet reference, a kind of builder UI. So I can search or navigate to a cmdlet, read it's syntax, see some examples AND run those examples AND build my own execution of that cmdlet.Ideally the UI will allow a preview of the output objects of cmdlets (using the `ConvertTo-JSON` cmdlet) as tables or trees and piping these outputs to other cmdlets. Even more betterer would be a kind of flowchart drag and drop like snaplogic but that's a way down the line.So, in addition to the questions above, can plugins within TW Desktop work like standard node modules and require modules like `node-powershell` and just execute OS commands?
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/e0439414-f8c9-4d8f-aadd-6157332381d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
const exec = require('child_process').exec;
exec('ls', (err, stdout, stderr) => {
if (err) {
console.error(err);
return;
}
console.log(stdout);
});
Thanks Jeremy. I'm looking at using the `child_process` module but I don't see any node_modules/ folder in TW Desktop. Could you give me a leg up on how to import a module?
Bonus Question: If you could hack a small plugin which shows a button which execs say `ls` and returns (alerts) the string that would be awesome.
const exec = require('child_process').exec;
exec('ls', (err, stdout, stderr) => {
if (err) {
console.error(err);
return;
}
console.log(stdout);
});
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/9fee8f58-22e0-4627-9438-0ba7c1d6962c%40googlegroups.com.
<button onclick="console.log(process.version)">Click Me!</button>
I see the wikis are not running as normal nw.js applications. How are you launching them?
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/565ee1cb-d2a8-4ca1-8975-b22a1b2251eb%40googlegroups.com.