kotlin-cli-util
kotlin-cli-util copied to clipboard
Kotlin CLI utilities, mostly intended for use with Clikt
Kotlin CLI Utils
A repo containing basic CLI utilities for Kotlin.
Installation
dependencies {
implementation("com.slack.cli:kotlin-cli-util:<version>")
}
Snapshots of the development version are available in Sonatype's snapshots
repository.
Local testing
If consuming these utilities from a kotlin script file, you can test changes like so:
- Set the version in
gradle.properties
, such as2.5.0-LOCAL1
. - Run
./gradlew publishToMavenLocal
to publish the current version to your local maven repository. - In your script file, add the local repository and update the version:
@file:Repository("file:///Users/{username}/.m2/repository") @file:DependsOn("com.slack.cli:kotlin-cli-util:{version you set in gradle.properties}")
- Repeat as needed while testing, incrementing the version number each time to avoid caching issues.
License
Copyright 2022 Slack Technologies, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.