Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
lib
 
 
 
 
 
 
 
 

mosbot

mosbot will generate a My Oracle Support URL based on a document ID, bug number, patch number or community idea.

Installation

$ gem install mosbot

Usage

To use mosbot, enter the URL type and the number.

$ mosbot doc 123456.1
$ https://support.oracle.com/epmos/faces/DocumentDisplay?id=123456.1

$ mosbot bug 1222341
$ https://support.oracle.com/epmos/faces/BugMatrix?id=1222341

mosbot will default to documents. If you specify only a number mosbot will return a document URL. Supported types are:

  • doc
  • bug
  • patch
  • idea

There are two parameters for mosbot

  • -c: Copy the URL to your clipboard
  • -o: Open the URL in your browser

You can also configure mosbot to copy the output URL or open a browser window with the URL. The environment variables MOS_COPY_URL=true and MOS_OPEN_URL=true control how mosbot handles the output.

MOS_COPY_URL and MOS_OPEN_URL options default to false.

Config File

mosbot will also read from a configuration file. The default config file is ~/.mosbot.conf. You can override that file by using the MOS_BOT_CONF environment variable.

The .mosbot.conf file stores key=value pairs:

MOS_COPY_URL=true
MOS_OPEN_URL=true

The configuration file takes precedence over environment variables.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/mosbot-cli. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Mosbot::Cli project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

mosbot for the Command Line

Resources

License

Releases

No releases published

Packages

No packages published

Languages