GithubHelp home page GithubHelp logo

refaldyrk / aelx Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 6.9 MB

Written In Golang! AELX (Advanced Configuration Extractor) adalah sebuah perangkat lunak baris perintah yang membantu membaca dan memproses file konfigurasi .aelx. Dengan AELX, Anda dapat dengan mudah ekstraksi pasangan kunci-nilai dari file konfigurasi dan mengeluarkan data dalam format JSON atau sebagai variabel lingkungan

License: Apache License 2.0

aelx's Introduction

AELX

AELX adalah sebuah perangkat lunak baris perintah yang memungkinkan Anda untuk membaca dan memproses file konfigurasi .aelx. Perangkat lunak ini mendukung ekstraksi pasangan kunci-nilai dari file konfigurasi dan menyediakan opsi untuk mengeluarkan data dalam format JSON atau sebagai variabel lingkungan (environment variables).

Instalasi

Untuk menginstal AELX, ikuti langkah-langkah berikut:

  1. Clone repositori AELX:

    git clone https://github.com/refaldyrk/aelx.git
  2. Beralih ke direktori proyek:

    cd aelx
  3. Jalankan Aelx:

    aelx --f config.aelx -k hello

Penggunaan

Jalankan perintah aelx dengan flag-flag berikut:

  • -k: Kunci yang ingin Anda ambil nilainya dari file konfigurasi.
  • --f: Nama file .aelx yang ingin Anda baca.
  • -j: Opsi opsional untuk mengeluarkan data dalam format JSON. Default: false.
  • --o: Opsi opsional untuk menentukan nama file keluaran dalam format JSON. Default: aelx.json.
  • -e: Opsi opsional untuk mengeluarkan data sebagai variabel lingkungan. Default: false.
  • -yaml: Opsi opsional untuk mengeluarkan data dalam format YAML. Default: false.
  • -toml: Opsi opsional untuk convert ke dalam file toml
  • -xml: Opsi opsional untuk convert ke dalam file xml

Contoh Penggunaan

  1. Mengambil nilai kunci tertentu dari file konfigurasi:

    aelx -k <nama-kunci> --f <nama-file.aelx>

    Contoh:

    aelx -k hello --f config.aelx
  2. Mengeluarkan data dalam format JSON:

    aelx -k <nama-kunci> --f <nama-file.aelx> -j true

    Contoh:

    aelx -k hello --f config.aelx -j true
  3. Mengeluarkan data dalam format JSON dengan nama file kustom:

    aelx -k <nama-kunci> --f <nama-file.aelx> -j true --o <keluaran.json>

    Contoh:

    aelx -k hello --f config.aelx -j true --o output.json
  4. Mengeluarkan data sebagai variabel lingkungan:

    aelx -k <nama-kunci> --f <nama-file.aelx> -e true

    Contoh:

    aelx -k hello --f config.aelx -e true
  5. Mengeluarkan data sebagai yaml file:

    aelx -k <nama-kunci> --f <nama-file.aelx> -yaml true

    Contoh:

    aelx -k hello --f config.aelx -yaml true
  6. Mengeluarkan data sebagai toml file:

    aelx -k <nama-kunci> --f <nama-file.aelx> -toml true

    Contoh:

    aelx -k hello --f config.aelx -toml true
  7. Mengeluarkan data sebagai xml file:

    aelx -k <nama-kunci> --f <nama-file.aelx> -xml true

    Contoh:

    aelx -k hello --f config.aelx -xml true

Format File .aelx

File .aelx menggunakan format yang khusus. Berikut adalah contoh format file .aelx yang didukung:

project: start|
[kunci-1] nilai-1|
[kunci-2] nilai-2|
[kunci-3] nilai-3|
project: end|

Pastikan file .aelx mengikuti format tersebut untuk memastikan ekstraksi data yang benar.

Contoh File Konfigurasi .aelx

Berikut adalah contoh isi dari file konfigurasi .aelx:

project: start|
hello[world]|
lorem[ipsum]|
project: end|

Dalam contoh ini, terdapat dua pasangan kunci-nilai:

  • Kunci: hello, Nilai: world
  • Kunci: lorem, Nilai: ipsum

Anda dapat menggunakan perintah aelx untuk mengambil nilai dari kunci-kunci ini atau melakukan ekstraksi data yang sesuai dengan kebutuhan Anda.

aelx's People

Contributors

refaldyrk avatar

Stargazers

Clayton Kehoe avatar Febriadji 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.