ixkit-cli

module
v0.0.0-...-b817d74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2020 License: MIT

README

ixkit-cli

Usage: ixkit [-h|--help] [-m|--map ""(Service.Method name)] [-n|--name ""(name)] [-d|--desc ""(Description)] [-v|--ver] [--trace]

🐙ixkit cli is a Go implemented CLI cURL-like tool for automate build mobile
         client SDK application, inspired Httpie and bat, but ixkit do more
         steps, it can mapping the http call to native mobile application
         source code directly, iOS(Swift|Objective C), Android and
         more.

cURL -> Request + Response => mobile app source code

Purpose:
🚀Base http call automate generate native App client source code for all
         mobile platforms that can invoke & consume the http web service
         easily.
⚙️ Help you fast build mobile client SDK for your RESTful APIs!
💡more help information of ixkit cli,please refer to
         https://github.com/icoco/ixkit

Commands:

start Start new application, use -n|--name specifiy the application name. load Load full mobile platforms source code of the application.

Arguments:

-h --help Print help information -m --map Mapping http call to Method of Web Service class in application, value format: "Service.Method" eg: ixkit http://ixkit.com/api/app -m AppService.list -n --name Specifiy name -d --desc Describe the item,optional -v --ver Show version --trace Debug mode

🚦ixkit is standing on the bat which implmeted cURL features, press enter key to continue check the full detail usage.

🐙ixkit transfer command to bat that is a Go implemented CLI cURL-like tool for humans, then mapping the http request and response as definition to service class source code of native mobile client application.

Full Usage:

ixkit [command] [flags] [METHOD] URL [ITEM [ITEM]] 

Command: start Start new application,use -n|--name specifiy the application name. load Load full mobile platforms source code of the application. flags: -m --map Mapping http call to Method of Web Service class in application, eg: ixkit http://ixkit.com/api/app -m AppService.list -n --name Specifiy the application name -d --desc Describe the item,optional

curl flags: -a, -auth=USER[:PASS] Pass a username:password pair as the argument -b, -bench=false Sends bench requests to URL -b.N=1000 Number of requests to run -b.C=100 Number of requests to run concurrently -body="" Send RAW data as body -f, -form=false Submitting the data as a form -j, -json=true Send the data in a JSON object -p, -pretty=true Print Json Pretty Format -i, -insecure=false Allow connections to SSL sites without certs -proxy=PROXY_URL Proxy with host and port

METHOD: defaults to either GET (if there is no request data) or POST (with request data).

URL: The only information needed to perform a request is a URL. The default scheme is http://, which can be omitted from the argument; example.org works just fine.

ITEM: Can be any of: Query string key=value Header key:value Post data key=value File upload key@/path/file

Full Example: ixkit ixkit.com/api/app

ixkit start -n myapp -d "Fast build mobile client sdk"
cd myapp
ixkit ixkit.com/api/app -m AppService.list 
ixkit POST ixkit.com/api/app name="Demo App" --map AppService.create --desc "Create Action"

ixkit load

💡more help information of ixkit ,please refer to ixkit

usage of cURL, please refer to bat

Directories

Path Synopsis
vendors
astaxie/bat
Bat is a Go implemented CLI cURL-like tool for humans bat [flags] [METHOD] URL [ITEM [ITEM]]
Bat is a Go implemented CLI cURL-like tool for humans bat [flags] [METHOD] URL [ITEM [ITEM]]
astaxie/bat/httplib
Usage: import "github.com/astaxie/beego/httplib" b := httplib.Post("http://beego.me/") b.Param("username","astaxie") b.Param("password","123456") b.PostFile("uploadfile1", "httplib.pdf") b.PostFile("uploadfile2", "httplib.txt") str, err := b.String() if err != nil { t.Fatal(err) } fmt.Println(str) more docs http://beego.me/docs/module/httplib.md
Usage: import "github.com/astaxie/beego/httplib" b := httplib.Post("http://beego.me/") b.Param("username","astaxie") b.Param("password","123456") b.PostFile("uploadfile1", "httplib.pdf") b.PostFile("uploadfile2", "httplib.txt") str, err := b.String() if err != nil { t.Fatal(err) } fmt.Println(str) more docs http://beego.me/docs/module/httplib.md

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL