GithubHelp home page GithubHelp logo

essentialkaos / knf Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 145 KB

Simple utility for reading values from KNF files

Home Page: https://kaos.sh/knf

License: Apache License 2.0

Makefile 19.75% Go 80.25%
golang golang-tool

knf's Introduction

GitHub Actions CI Status GoReportCard Codebeat badge GitHub Actions CodeQL Status

InstallationCommand-line completionMan documentationUsageBuild StatusContributingLicense


knf is a simple utility for reading values from KNF files.

Installation

From source

To build the knf from scratch, make sure you have a working Go 1.17+ workspace (instructions), then:

go install github.com/essentialkaos/knf

Prebuilt binaries

You can download prebuilt binaries for Linux and macOS from EK Apps Repository:

bash <(curl -fsSL https://apps.kaos.st/get) knf

Command-line completion

You can generate completion for bash, zsh or fish shell.

Bash:

sudo knf --completion=bash 1> /etc/bash_completion.d/knf

ZSH:

sudo knf --completion=zsh 1> /usr/share/zsh/site-functions/knf

Fish:

sudo knf --completion=fish 1> /usr/share/fish/vendor_completions.d/knf.fish

Man documentation

You can generate man page using next command:

knf --generate-man | sudo gzip > /usr/share/man/man1/knf.1.gz

Usage

Usage: knf {options} knf-file property

Options

  --exist, -E        Checks if given param is exist
  --no-color, -nc    Disable colors in output
  --help, -h         Show this help message
  --version, -v      Show version

Examples

  knf file.knf server:ip
  Read server:ip param value

  knf -E file.knf server:ip
  Checks if server:ip param is exist in KNF file

Build Status

Branch Status
master CI
develop CI

Contributing

Before contributing to this project please read our Contributing Guidelines.

License

Apache License, Version 2.0

knf's People

Contributors

andyone avatar dependabot[bot] 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.