From 9d535ecbdce771ceb8549b74b2e6772f075d7293 Mon Sep 17 00:00:00 2001
From: Seblu <sebastien.luttringer@smartjog.com>
Date: Wed, 29 Dec 2010 15:02:16 +0100
Subject: [PATCH] TQL spec update

---
 TQL | 30 ++++++++++++++++++++----------
 1 file changed, 20 insertions(+), 10 deletions(-)

diff --git a/TQL b/TQL
index 20a4347..49b9448 100644
--- a/TQL
+++ b/TQL
@@ -3,31 +3,41 @@ Tag Query Language
 ==================
 == by examples ==
 # list accounts
-> list a
+sluttrin> list a
 
 # list hypervisor
-> list hv
+sluttrin> list hv
 
 # list vm
-> list vm
+sluttrin> list vm
 
 # list vm of hypervisor toto
-> list hv=toto&vm
+sluttrin> list hv=toto&vm
 
 # list vm chiche of hypervisor toto
-> list hv=toto&vm=chiche
+sluttrin> list hv=toto&vm=chiche
 
 #list vm with 2 cpu
-> list vm&cpu=2
+sluttrin> list vm&cpu=2
 
 #list vm with 2 cpu and mem > 10g
-> list vm&cpu=2&mem>10g
+sluttrin> list vm&cpu=2&mem>10g
 
 #list hypervistor with 2cpu and vm with 2cpu
-> list hv&cpu=2&vm&cpu=2
+sluttrin> list hv&cpu=2&vm&cpu=2
 
 #list hypervistor at least 2cpu and show tags pop and alloc
-> list hv&cpu>=2$pop$alloc
+sluttrin> list hv&cpu>=2$pop$alloc
+
+#list first 10 vm
+sluttrin> list vm^10
+
+#list last 10 vm
+sluttrin> list vm^:10
+
+#list vm 
+sluttrin> list vm^5:10
+
 
 == Basics ==
 - TQL build a list of objects from left to right
@@ -38,7 +48,7 @@ Tag Query Language
 == separators of tags ==
 & and between tags
 $ show a tag
-# limit output
+^ limit output
 
 == operators on tags ==
 = strict equality
-- 
GitLab