Giter Site home page Giter Site logo

devops_cli_exercise's Introduction

Devops_CLI_exercise

Python 3 CLI created as part of a Devops exercise. Uses docker-compose and dockerfile to run in a container.

How to run

To run the CLI application, run the command docker-compose run --rm cli

Upon the building of the docker container, you will recieve a prompt to enter the path to the JSON file. You can enter test_json.json or add your own json file in the root directory to test.

From there, you should be prompted with [Your JSON path] % , which is similar to shell command prompt to enter a command. From there, you can enter either:

  • ls, to recieve a list of usernames in the employee database
  • get <username> to recieve specific information about one username

Tests

There are three basic pytest tests that cover basic capabilities of the CLIObject class. You can run those in a docker container as well using the command docker-compose run --rm test

devops_cli_exercise's People

Contributors

koalacards avatar

Watchers

 avatar  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.