Coder Social home page Coder Social logo

u2up-cli-demo's Introduction

Compiling "hello-cli":
======================

$ 
$ mkdir demo
$ 

$ 
$ cd demo
demo$ 

demo$ 
demo$ git clone https://github.com/spog/u2up-cli-demo.git
Cloning into 'u2up-cli-demo'...
remote: Enumerating objects: 128, done.
remote: Counting objects: 100% (128/128), done.
remote: Compressing objects: 100% (77/77), done.
remote: Total 128 (delta 63), reused 112 (delta 47), pack-reused 0
Receiving objects: 100% (128/128), 46.03 KiB | 628.00 KiB/s, done.
Resolving deltas: 100% (63/63), done.
demo$ 

demo$ 
demo$ cd u2up-cli-demo
demo/u2up-cli-demo$ 

demo/u2up-cli-demo$ 
demo/u2up-cli-demo$ gcc -o hello-cli -I ./include -DU2UP_LOG_MODULE_DEBUG=1 -DU2UP_LOG_MODULE_TRACE=1 -g hello-cli.c
demo/u2up-cli-demo$ 

demo/u2up-cli-demo$ 
demo/u2up-cli-demo$ ls -la
skupno 448
drwxr-xr-x 4 samo samo   4096 maj 22 19:58 .
drwxr-xr-x 3 samo samo   4096 maj 22 19:57 ..
drwxr-xr-x 8 samo samo   4096 maj 22 19:57 .git
-rwxr-xr-x 1 samo samo 403296 maj 22 19:58 hello-cli
-rw-r--r-- 1 samo samo  16455 maj 22 19:57 hello-cli.c
drwxr-xr-x 4 samo samo   4096 maj 22 19:57 include
-rw-r--r-- 1 samo samo  10175 maj 22 19:57 LICENSE
-rw-r--r-- 1 samo samo   3281 maj 22 19:57 README
demo/u2up-cli-demo$ 

Running "hello-cli":
====================

demo/u2up-cli-demo$ 
demo/u2up-cli-demo$ ./hello-cli 
hello-cli>  
hello-cli> help  
help command handle called!'

Press TAB-TAB to display all available commands.
Use TAB for auto-complete.
Use TAB-TAB for auto-suggest.
Use UP and DOWN keys to walk the commands history.

hello-cli> 
help
action1
action2
action3
action4
obj1
obj2
quit
hello-cli> action 
action1
action2
action3
action4
hello-cli> action1  
[str=%s]
hello-cli> action1  
action1: command handle called!'
hello-cli>  
hello-cli> action1 str=hello
action1: command handle called!'
action1 command handle: str=hello
hello-cli>  
hello-cli> action2  
obj1
obj2
hello-cli> action2 obj 
obj1
obj2
hello-cli> action2 obj1  
{aa=%8x | ab=%u}
hello-cli> action2 obj1 aa=f1bedac 
action2 obj1: command handle called!'
action2 obj1: command parameter (aa=0f1bedac)!'
hello-cli>  
hello-cli> quit  
quit command handle called!'
Bye...
demo/u2up-cli-demo$ 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.