You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ro...@apache.org on 2018/10/02 13:27:49 UTC
svn commit: r1842619 -
/felix/site/trunk/content/documentation/subprojects/apache-felix-gogo/rfc-147-overview.mdtext
Author: rotty3000
Date: Tue Oct 2 13:27:49 2018
New Revision: 1842619
URL: http://svn.apache.org/viewvc?rev=1842619&view=rev
Log:
CMS commit to felix by rotty3000
Modified:
felix/site/trunk/content/documentation/subprojects/apache-felix-gogo/rfc-147-overview.mdtext
Modified: felix/site/trunk/content/documentation/subprojects/apache-felix-gogo/rfc-147-overview.mdtext
URL: http://svn.apache.org/viewvc/felix/site/trunk/content/documentation/subprojects/apache-felix-gogo/rfc-147-overview.mdtext?rev=1842619&r1=1842618&r2=1842619&view=diff
==============================================================================
--- felix/site/trunk/content/documentation/subprojects/apache-felix-gogo/rfc-147-overview.mdtext (original)
+++ felix/site/trunk/content/documentation/subprojects/apache-felix-gogo/rfc-147-overview.mdtext Tue Oct 2 13:27:49 2018
@@ -41,7 +41,7 @@ The `CommandSession` interface provides
...
}
-### Easy to use interactively - no unnecessary syntax.
+### Easy to use interactively - no unnecessary syntax
- basic commands
@@ -62,7 +62,7 @@ The `CommandSession` interface provides
g! (bundle 1) location
file:/Users/derek/Downloads/felix-framework-3.0.0/bundle/org.apache.felix.bundlerepository-1.6.2.jar
-### Lists, maps, pipes and closures.
+### Lists, maps, pipes and closures
- lists - `[]`
@@ -96,7 +96,7 @@ The `CommandSession` interface provides
g! echo2 hello world
xxx hello world yyy
-### Leverages existing Java capabilities, via reflection.
+### Leverages existing Java capabilities, via reflection
- exception handling - console shows summary, but full context available
@@ -126,7 +126,7 @@ The `CommandSession` interface provides
os.version 10.6.2
[snip]
-### Easy to implement and test commands without needing OSGi.
+### Easy to implement and test commands without needing OSGi
Command implementations don't need to reference any OSGi interfaces. They can use `System.in`, `System.out` and `System.err`, just as you would in a trivial Java application. The `ThreadIO` service transparently manages the singleton `System.out` etc, so that each thread sees the appropriate stream:
@@ -137,7 +137,7 @@ Command implementations don't need to re
}
}
-### Normal commands can provide control primitives.
+### Normal commands can provide control primitives
:::java
public void each(CommandSession session, Collection<Object> list, Function closure) throws Exception {
@@ -146,6 +146,7 @@ Command implementations don't need to re
}
}
+then
:::shell
g! each [Jan Feb Mar] { echo $it | grep . }