Git Product home page Git Product logo

oradbpm-cli's Introduction

Build Status bitHound Score bitHound Dependencies

Oracle DB Package Manager CLI

Tool for accessing Oracle DB Package Manager repository

Idea

I need something like npmjs.org + npm for modules written in Oracle PL/SQL and I've been unable to find any opensource solution, so here's my try. Features are greatly inspired by npmjs.org and npm.

Features

  • Open sourced npm-style client CLI written in node
    • lousy security - session cookie - sorry for that _(ใƒ„)_/ยฏ - any contributions regarding this are welcomed
  • Open sourced REST API server

Warning!!!

  • very unstable right now, pretty all changes are breaking - do not use for production, yet

oradbpm-cli's People

Contributors

s-oravec avatar

Watchers

James Cloos avatar  avatar

oradbpm-cli's Issues

oradbpm-deprecate

npm deprecate <pkg>[@<version>] <message>

This command will update the oradbpm registry entry for a package, providing a deprecation warning to all who attempt to install it.

It should work on version ranges as well as specific versions, so you can do something like this:

oradbpm deprecate my-thing@"< 0.2.3" "critical bug fixed in v0.2.3"
Note that you must be the package owner to deprecate something.

To un-deprecate a package, specify an empty string ("") for the message argument.

oradbpm-run-script

Runs an arbitrary command from a package's "scripts" object. If no "command" is provided, it will list the available scripts. run-script is used by the test, start, restart, and stop commands, but can be called directly, as well. When the scripts in the package are printed out, they're separated into lifecycle (test, start, restart) and directly-run scripts.

oradbpm-bugs

oradbpm bugs [<pkgname>]

This command tries to guess at the likely location of a package's bug tracker URL, and then tries to open it using the --browser config param. If no package name is provided, it will search for a oradb_package.json in the current folder and use the name property.

oradbpm-user

manage privileges to modify package

oradbpm-user add <user> <pkg>
oradbpm-user remove <user> <pkg>
oradbpm-user list <pkg>
  • add user to package
  • remove remove user from package
  • list list users with rights to modify package - tag, publish, ...

oradbpm-init

interactively create oradbpm_package.json file

oradbpm-remove

oradbpm-remove <pkgname>

removes package from downloaded oradb_modules directory and from oradb_package.json

oradbpm-search

--long (default false)

Display full package descriptions and other long text across multiple lines. When disabled (default) search results are truncated to fit neatly on a single line. Modules with extremely long names will fall on multiple lines.

oradbpm-restart

This restarts a package.

This runs a package's "stop", "restart", and "start" scripts, and associated pre- and post- scripts, in the order given below:

  • prerestart
  • prestop
  • stop
  • poststop
  • restart
  • prestart
  • start
  • poststart
  • postrestart

oradbpm-prune

remove packages not mentioned in oradbpm_package.json as dependencies/devDependencies from oradb_modules directory

If the --production flag is specified or the ORACLE_ENV environment variable is set to production, this command will remove the packages specified in your devDependencies. Setting --production=false will negate ORACLE_ENV being set to production.

oradbpm-update

Updates all packages listed in oradb_package.json downloaded into oradb_modules directory.
It will also install missing packages

oradbpm init

  • create package file with mandatory properties

oradbpm-root

Print the effective oradb_modules folder to standard out.

oradbpm-tag

oradbpm-tag add <pkg>@<version> <tag>
oradbpm-tag remove <pkg> <tag>
oradbpm-tag list <pkg>
  • add tag to package version
  • remove remove tag from package
  • list list tags in the package
  • tags can be used as an alias instead of specific version - e.g. stable, beta, dev, ...
  • tag share same namespace as package version (used in oradbpm get <pacakge>@<version> or
    oradbpm get <package>@<tag>)
  • tags that can be interpreted as valid semver will be rejected - begining with number or the letter v

oradbpm-ls

list all packages downloaded in package directory and their versions

oradbpm-view

oradbpm-version <name>@<version>

view package info in repository

oradbpm-get

downloads package from repository

oradbpm-get (with no args, in package dir)
oradbpm-get <name>
oradbpm-get <name>@<tag>
oradbpm-get <name>@<version>
oradbpm-get <name>@<version range>
oradbpm-get <git url>
  • without parameter - all packages defined in oradb_package.json file
  • with parameter - specified pacakge with tag/version/version range/git url

options

  • --save save as dependency
  • --save-dev save as devDependency

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.