Coder Social home page Coder Social logo

opt-nc / jbang-catalog Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 24 KB

Catalogue des scripts JBang! de l'OPT-NC (OPT Nouvelle-Calédonie)

Home Page: https://killercoda.com/opt-labs/course/jbang/optnc-catalog

Java 100.00%
cli newcaledonia nouvelle-caledonie opensource opensource-apps picocli jjbang

jbang-catalog's Introduction

Le catalogue JBang de OPT-NC

Ici seront référencés des démos, mini projets, exécutables très facilement grâce à (J)Bang.

Usage

👉 Prérequis

sdk install jbang

🚀 Lancer les scripts avec (J)Bang!

Il existe plusieurs façons de lancer les scripts référencés dans le catalog. Exemple de hello-optnc :

En créant un alias local au poste de dev :

jbang alias add --name hello-optnc https://github.com/opt-nc/jbang-catalog/blob/main/hello-optnc/HelloOptNc.java
# Check des alias
jbang alias list
# Appel du script
jbang hello-optnc

ou directement

jbang  hello-optnc@opt-nc/jbang-catalog

Enfin, pour rester à jour des ajouts de la communauté, mettre à jour le cache :

jbang cache clear
jbang  hello-optnc@opt-nc/jbang-catalog

jbang-catalog's People

Contributors

mbarre avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

maxandersen

jbang-catalog's Issues

JBang! > option -o json

Afin de mieux pouvoir exploiter la sortie du cli, voici la solution que j'ai trouvée :

-o json

Qui renvoie le contenu.

Par exemple sur un test oui/non, renjoyer le json du genre

{
  "response":true
}

☝️ Ainsi, le cli retoure toujours un exit code 0 (sauf quand le runtime java plante ou autre)... et ça améliore les possibilités d'intégration du cli... pipe avec jq ou autre...

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.