Giter Club home page Giter Club logo

ini-op's Introduction

ini-op

Build Status Go Report Card GitHub tag (latest SemVer)

Read/Write inifile. Especially deleting an entry or a section.

It's used for my git-submodule-rm.

$ bin/ini-op
ini-op is an effective tool for read/write inifile by Hedzr Yeh <[email protected]> - v0.2.3

Usages:
    ini-op [Commands]  [Options] [Parent/Global Options]

Commands:
  e, entry                                        get/put entry.
  s, section, sec                                 get/put section
  [Misc]
  g, generate, gen                                generators for this app.
  version, ver                                    Show the version of this app.

Options:
  [Misc]
       --config=[Location of config file]         load config files from where you specified
  -q,  --quiet                                    No more screen output. (default=false)
  -v,  --verbose, --vv, --vvv                     Show this help screen (default=false)
  -V,  --version                                  Show the version of this app. (default=false)

Type '-h' or '--help' to get command help screen.

History

  • v0.3.9
    • upgrade to hedzr/cmdr v1.11.9+
    • security maintains since golang/x/net should be upgraded
    • remove unavailable travis actions
    • enable github actions
      • packaged to github packages: here
      • keep dockerhub release

Commands

[TODO] The following chapters need to be simplified.

command section

$ bin/ini-op section
ini-op is an effective tool for read/write inifile by Hedzr Yeh <[email protected]> - v0.2.3

Usages:
    ini-op section [Sub-Commands]  [Options] [Parent/Global Options]

Description:
    get/put section

Sub-Commands:
  g, get, rd, read                                get a section
  r, rm, remove, del, erase, delete               remove a scrtion

Global Options:
  [Misc]
       --config=[Location of config file]         load config files from where you specified
  -q,  --quiet                                    No more screen output. (default=false)
  -v,  --verbose, --vv, --vvv                     Show this help screen (default=false)
  -V,  --version                                  Show the version of this app. (default=false)

Type '-h' or '--help' to get command help screen.

Usages:

# print `server` section
$ ini-op s get server $HOME/abc.ini
# delete `server` section
$ ini-op s rm server $HOME/abc.ini

command entry

$ bin/ini-op entry
ini-op is an effective tool for read/write inifile by Hedzr Yeh <[email protected]> - v0.2.3

Usages:
    ini-op entry [Sub-Commands]  [Options] [Parent/Global Options]

Description:
    get/put entry.

Sub-Commands:
  g, get, rd, read                                get an entry.
  p, put                                          put value to an entry.
  r, rm, remove, del, erase, delete               remove an entry.

Global Options:
  [Misc]
       --config=[Location of config file]         load config files from where you specified
  -q,  --quiet                                    No more screen output. (default=false)
  -v,  --verbose, --vv, --vvv                     Show this help screen (default=false)
  -V,  --version                                  Show the version of this app. (default=false)

Type '-h' or '--help' to get command help screen.

Usages:

# print section `server`, entry `port`
$ ini-op e get server port $HOME/abc.ini
$ ini-op e put server port 1313 $HOME/abc.ini
$ ini-op e rm server port $HOME/abc.ini

TODO

  • rewrite with new cmdr;
  • add yaml, json, and toml supports;
  • clean codes

Contrib

Feel free to issue.

LICENSE

MIT

ini-op's People

Contributors

hedzr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

maahsome

ini-op's Issues

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.