Coder Social home page Coder Social logo

ops-cli's Introduction

Ops CLI

Introducing our Operations Command Line Interface (CLI) utility, built in Node.js to facilitate streamlined and extensible operational scripting for teams. This CLI tool offers a foundation for executing simple operational scripts in Node.js, providing teams with a practical solution to enhance and simplify their product operations. Emphasizing flexibility and ease of use, our Operations CLI aims to optimize workflows and improve efficiency in managing various operational aspects of your product.

How to extend?

Ops-cli reads all available recipes on the ./recipes folder. They should be .js node scripts that include a run() function that will be the entry point for the script.

import { executeCommand } from "../helpers/utils.js";

/**
 * Sample function to execute a command asynchronously
 */
async function run(callback) {
    try {
        let command1 = 'echo "Hello World"';
        await executeCommand(command1);
        console.log('Command 1 executed successfully');

        let command2 = 'ls -l';
        await executeCommand(command2);
        console.log('Command 2 executed successfully');
    } catch (error) {
        console.error(`Error: ${error.message}`);
    }
    callback();
}

export { run };

How to Contribute?

We appreciate and encourage contributions to enhance the functionality and robustness of our Ops CLI. If you have improvements, new features, or bug fixes to contribute, please follow these steps:

  1. Fork the Repository:

    • Fork the Ops CLI repository to your GitHub account.
  2. Create a New Branch:

    • Create a new branch for your feature or bug fix. Use a descriptive and concise branch name.
  3. Make Changes:

    • Implement your changes, ensuring that your code adheres to our coding standards.
    • Include relevant comments and documentation for any new features or changes.
  4. Run Tests:

    • Ensure that all existing tests pass with your changes. If you've added new functionality, include appropriate tests.
  5. Submit a Pull Request:

    • Once your changes are ready, submit a pull request from your forked repository to the main Ops CLI repository.
    • Clearly describe the purpose of your pull request, including any new features or bug fixes.
  6. Review and Collaboration:

    • Expect feedback and be ready to iterate on your changes. We may request adjustments or further improvements.
  7. Merge and Celebrate:

    • After your pull request is approved, it will be merged into the main branch. Congratulations on your contribution!

By contributing to Ops CLI, you're helping us build a better tool for everyone. Thank you for your support and dedication!

ops-cli's People

Contributors

llipe avatar

Stargazers

 avatar

Watchers

 avatar

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.