Coder Social home page Coder Social logo

c's Introduction

C

Build Status codecov

Lazy cli tool (even on the name) for personal ordinary tasks. It may not fit your personal tasks.

Requirements

  • Clojure 1.10+
  • Leiningen 2+
  • Java 8+

Install

At moment you need generate the uberjar your self, for that use:

lein uberjar

then copy the standalone jar to a folder and create a alias to following command:

alias c="java -jar c-0.0.1-SNAPSHOT-standalone.jar"

Tasks

Replace variables on bootstrap.yml (yet main command)

Usually I need to see all config in a Spring Project at work, usually they all have a bootstrap file located on: src/main/resources/bootstrap.yml, this command replaces variables in bootstrap.yml and prints out urls to Cloud Config server and Vault.

c

Example of bootstrap.yml file:

spring:
  application:
    name: my-project
  cloud:
    config:
      uri: http://config-server-${ENV_TYPE:dev}.example.com
    vault:
      host: vault-${ENV_TYPE:dev}.example.com
      token: ${VAULT_TOKEN:fixed-dev-token}
      generic:
        default-context: projects/application
        application-name: projects/my-project

Output:

"Spring Cloud Config:"
"Url:" "http://config-server-dev.example.com/my-project/default"
"Spring Cloud Vault:"
"Token:" "fixed-dev-token"
"Url:" "null://vault-dev..example.com:null/ui/vault/secrets/secret/show/projects/my-project"

Testing

lein test

c's People

Contributors

caioguedes avatar lschaan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lschaan

c'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.