meta données pour cette page
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
demo:cli [2011/05/13 07:03] ztrulphcs [outil imaginaire] |
— (Version actuelle) | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Cli ====== | ||
- | Ce greffon est optionnel et peut être retiré. | ||
- | |||
- | * page officielle : [[doku>: | ||
- | * plus d' | ||
- | |||
- | Ce greffon sert à mettre en valeur du texte saisi dans un [[wpfr> | ||
- | |||
- | ===== Modification ===== | ||
- | |||
- | Le système de reconnaissance des invites (//prompt// en anglais) et des commentaires est basé sur des expressions régulières. Il étend le système non modifié, et reste donc talement compatible avec lui (ie les pages crées pour le système d' | ||
- | |||
- | --- // | ||
- | |||
- | ===== Démo ===== | ||
- | |||
- | ==== Session shell unix ==== | ||
- | |||
- | <cli> | ||
- | user@host: | ||
- | Don t be fooled byt his sharp sign 0 It s not a comment | ||
- | grumpf [9881] 09:23:31 (0) ~ $ echo it seems \ | ||
- | > to be ok # really | ||
- | it seems to be ok | ||
- | user@host:~ (0) $ sudo -s #I need to be root to run this ls command... | ||
- | [sudo] password for user: | ||
- | root@host:~ (0) # ls \ | ||
- | > # let's have a look | ||
- | Bureau | ||
- | compilesqlite | ||
- | Documents | ||
- | Editra-user | ||
- | root@host:~ (0) # echo Hum... It seems to be ok #really | ||
- | Hum... It seems to be ok | ||
- | root@host:~ (0) # exit | ||
- | user@host:~ (0) $ psql -U sauronuser sauron # look at that DB now | ||
- | Mot de passe pour l' | ||
- | Bienvenue dans psql 8.3.13, l' | ||
- | | ||
- | Saisissez: | ||
- | \copyright pour les termes de distribution | ||
- | \h pour l' | ||
- | \? pour l' | ||
- | \g ou point-virgule en fin d' | ||
- | \q pour quitter | ||
- | | ||
- | sauron=> select | ||
- | sauron-> * from | ||
- | sauron-> settings; | ||
- | setting | ||
- | -----------+-------+-------- | ||
- | | ||
- | (1 ligne) | ||
- | | ||
- | sauron=> \q | ||
- | user@host:~ (0) $ | ||
- | </ | ||
- | <cli> | ||
- | user@host: | ||
- | Don t be fooled byt his sharp sign 0 It s not a comment | ||
- | grumpf [9881] 09:23:31 (0) ~ $ echo it seems \ | ||
- | > to be ok # really | ||
- | it seems to be ok | ||
- | user@host:~ (0) $ sudo -s #I need to be root to run this ls command... | ||
- | [sudo] password for user: | ||
- | root@host:~ (0) # ls \ | ||
- | > # let's have a look | ||
- | Bureau | ||
- | compilesqlite | ||
- | Documents | ||
- | Editra-user | ||
- | root@host:~ (0) # echo Hum... It seems to be ok #really | ||
- | Hum... It seems to be ok | ||
- | root@host:~ (0) # exit | ||
- | user@host:~ (0) $ psql -U sauronuser sauron # look at that DB now | ||
- | Mot de passe pour l' | ||
- | Bienvenue dans psql 8.3.13, l' | ||
- | |||
- | Saisissez: | ||
- | \copyright pour les termes de distribution | ||
- | \h pour l' | ||
- | \? pour l' | ||
- | \g ou point-virgule en fin d' | ||
- | \q pour quitter | ||
- | |||
- | sauron=> select | ||
- | sauron-> * from | ||
- | sauron-> settings; | ||
- | setting | ||
- | -----------+-------+-------- | ||
- | | ||
- | (1 ligne) | ||
- | |||
- | sauron=> \q | ||
- | user@host:~ (0) $ | ||
- | </ | ||
- | |||
- | ==== Session shell unix python ==== | ||
- | <cli t=python> | ||
- | user@host:~ (0) $ python | ||
- | ActivePython 2.5.1.1 (ActiveState Software Inc.) based on | ||
- | Python 2.5.1 (r251: | ||
- | win32 | ||
- | Type " | ||
- | >>> | ||
- | ... " | ||
- | ... a, b = 0, 1 | ||
- | ... while b < n: | ||
- | ... print b, | ||
- | ... a, b = b, a+b | ||
- | ... | ||
- | >>> | ||
- | ... fib(2000) | ||
- | 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 | ||
- | </ | ||
- | <cli t=python> | ||
- | user@host:~ (0) $ python | ||
- | ActivePython 2.5.1.1 (ActiveState Software Inc.) based on | ||
- | Python 2.5.1 (r251: | ||
- | win32 | ||
- | Type " | ||
- | >>> | ||
- | ... " | ||
- | ... a, b = 0, 1 | ||
- | ... while b < n: | ||
- | ... print b, | ||
- | ... a, b = b, a+b | ||
- | ... | ||
- | >>> | ||
- | ... fib(2000) | ||
- | 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 | ||
- | </ | ||
- | ==== Session shell unix ruby interactif ==== | ||
- | |||
- | <cli t=irb> | ||
- | irb(main): | ||
- | => 4 | ||
- | irb(main): | ||
- | </ | ||
- | |||
- | <cli t=irb> | ||
- | irb(main): | ||
- | => 4 | ||
- | irb(main): | ||
- | </ | ||
- | |||
- | ==== outil imaginaire ==== | ||
- | <cli prompt="/ | ||
- | zgrf (0) ==> klonk !1 !2 # // This is voojvifying, | ||
- | ~ yes no no no no | ||
- | zqrf (2) ==> bleurk ! Bon, ça, ça devrait fonctionner | ||
- | Cannot bleurk. No such method. | ||
- | Did you mean blourk ? | ||
- | If so please say so. | ||
- | zqrf (2) ==> say so // On ne m'aura plus. | ||
- | blourk : success | ||
- | zqrf ==> | ||
- | </ | ||
- | <cli prompt="/ | ||
- | zgrf (0) ==> klonk !1 !2 # // This is voojvifying, | ||
- | ~ yes no no no no | ||
- | zqrf (2) ==> bleurk ! Bon, ça, ça devrait fonctionner | ||
- | Cannot bleurk. No such method. | ||
- | Did you mean blourk ? | ||
- | If so please say so. | ||
- | zqrf (2) ==> say so // On ne m'aura plus. | ||
- | blourk : success | ||
- | zqrf ==> | ||
- | </ |