
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Quickl helps you create commandline programs as simply as:
#
# Short description here
#
# SYNOPSIS
# Usage: ...
#
# OPTIONS:
# #{summarized_options}
#
# DESCRIPTION
# Long description here...
#
class SimpleCommand < Quickl::Command(__FILE__, __LINE__)
# install options below
options do |opt|
# _opt_ is an OptionParser instance
end
# install the code to run the command
def execute(args)
# _args_ are non-option command line parameters
end
end
Running them as simply as:
SimpleCommand.run(ARGV)
From simple command to complex delegator (ala 'git [--version] [--help] COMMAND [cmd options] ARGS...'), Quickl provides (or aims at providing) the following features:
sudo gem install quickl
Try this:
# have a look at options
quickl --help
# generate a hello.rb single command
quickl --layout=single --options=help,version hello > hello.rb
# test your command
ruby hello.rb --help
ruby hello.rb --version
ruby hello.rb bob
# see what has been generated
cat hello.rb
Additional examples (see examples folder):
A few other gems similarly provide tools to generate commandline app.
Until version 1.0.0, moditications of public interfaces increase the minor version, while other changes increase the tiny version. After version 1.0.0, same changes will affect major and minor versions, respectively.
0.1.0 -> 0.1.1 # enhancements and private API changes
0.1.0 -> 0.2.0 # broken API on public interfaces
Public interfaces are:
Until version 1.0.0, to preserve your application from hurting changes you should require quickl as follows:
gem 'quickl', '~> 0.2.0' # Assuming current version is 0.2.xx
require 'quickl'
FAQs
Unknown package
We found that quickl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.