Giter Club home page Giter Club logo

Comments (7)

ashishsnigam avatar ashishsnigam commented on May 24, 2024 1

@raullenchai @zjshen14 Just a suggestion for framework/layout of cli for iotexproject. We can follow similar approach as followed in docker cli project. Please see attached screenshot of docker code base. We are already on similar line.

ioctl [resource] [verb] [param] [flags]
we can add folder per resource and then with in this folder, add go files as per verbs available.
For eg: ioctl blockchain [list|get|show] ==> will add one folder named blockchain and 3 go files for 3 verbs.

docker_cli_example

from iotex-core.

ashishsnigam avatar ashishsnigam commented on May 24, 2024 1

Also while developing cli, put comment to specify complete cli path like
// NewCopyCommand creates a new docker cp command

similarly in iotex context
// heightCmd creates a new ioctl blockchain height command

from iotex-core.

raullenchai avatar raullenchai commented on May 24, 2024

IOCTL RFC.pdf

from iotex-core.

raullenchai avatar raullenchai commented on May 24, 2024

@lizhefeng @zjshen14 pls help @ashishsnigam to understand the context

from iotex-core.

raullenchai avatar raullenchai commented on May 24, 2024

@ashishsnigam both LGTM.

from iotex-core.

raullenchai avatar raullenchai commented on May 24, 2024

I've setup the skeleton: https://github.com/iotexproject/iotex-core/tree/master/cli/ioctl

from iotex-core.

raullenchai avatar raullenchai commented on May 24, 2024

I have breakdown tasks for this. No need to keep the umbrella task.

from iotex-core.

Related Issues (20)

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.