Difference between revisions of "Template:Icli"

From wiki.emacinc.com
Jump to: navigation, search
m (Tweaked)
m (Improved example to show output.)
 
Line 6: Line 6:
 
Use it like this:
 
Use it like this:
  
  <nowiki>{{icli | ls -la}}</nowiki>
+
  To show files, type <nowiki>{{icli | ls -la}}</nowiki> in your shell.
 +
 
 +
to produce:
 +
 
 +
To show files, type {{icli | ls -la}} in your shell.
 +
 
  
 
</noinclude><includeonly><span style="padding-bottom:1px;padding-top:0px;padding-left:3px;padding-right:3px;background-color:#111;border-radius:3px;box-shadow:1px 1px 2px #aaa;">{{clitxt|#aa0000}}root{{clitxts}}{{clitxt|#ffffff}}@{{clitxts}}{{clitxt|#00aaaa}}som9x25{{clitxts}}{{clitxt|#ffffff}}:{{clitxts}}{{clitxt|#54ffff}}~{{clitxts}}{{clitxt|#ffff55}}#{{clitxts}}{{clitxt}} {{{1}}}{{clitxts}}</span></includeonly>
 
</noinclude><includeonly><span style="padding-bottom:1px;padding-top:0px;padding-left:3px;padding-right:3px;background-color:#111;border-radius:3px;box-shadow:1px 1px 2px #aaa;">{{clitxt|#aa0000}}root{{clitxts}}{{clitxt|#ffffff}}@{{clitxts}}{{clitxt|#00aaaa}}som9x25{{clitxts}}{{clitxt|#ffffff}}:{{clitxts}}{{clitxt|#54ffff}}~{{clitxts}}{{clitxt|#ffff55}}#{{clitxts}}{{clitxt}} {{{1}}}{{clitxts}}</span></includeonly>

Latest revision as of 23:37, 9 December 2014

The iCLI Template

This template displays the passed argument, cmd, at a simulated command line, inline.

Use it like this:

To show files, type {{icli | ls -la}} in your shell.

to produce:

To show files, type root@som9x25:~# ls -la in your shell.