Skip to content

Commit

Permalink
Merge pull request #4 from Kerosene-Labs/rework
Browse files Browse the repository at this point in the history
Rework
  • Loading branch information
hlafaille authored Aug 19, 2024
2 parents 767e7d3 + 7a86dd7 commit 8a382b8
Show file tree
Hide file tree
Showing 46 changed files with 318 additions and 635 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/gradle-publish.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path

name: Maven Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Set up Maven settings
run: |
mkdir -p ~/.m2
echo "<settings>
<servers>
<server>
<id>github</id>
<username>${{ github.actor }}</username>
<password>${{ secrets.ACCESS_TOKEN }}</password>
</server>
</servers>
</settings>" > ~/.m2/settings.xml
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Espresso Argument Parser (EAP)
The **Espresso Argument Parser** is a library built for the [Espresso](https://github.com/hlafaille/espresso) build tool
to provide a clean and efficient way of handling command line arguments. See the `doc/` directory for more in depth
information.
# Argument Parser (arg)
The **Argument Parser** (arg) framework provides a clean and efficient way of handling command line arguments.

# Features
* Mimics the Docker CLI `resource -> action on resource` style
Expand Down Expand Up @@ -32,7 +30,7 @@ information.

public class Main() {
public static void main(String[] args) {
EspressoArgumentParser espressoArgumentParser = new EspressoArgumentParser("Docker", "Containers, yo!");
EspressoArgumentParser argumentParser = new EspressoArgumentParser("Docker", "Containers, yo!");

// build our command
Command command = new Command("ps", "List all images on this system") {
Expand All @@ -47,10 +45,10 @@ public class Main() {
commandContainer.addCommand(command);

// add that container to your parser
espressoArgumentParser.addCommandContainer(commandContainer);
argumentParser.addCommandContainer(commandContainer);

// enter the parser
espressoArgumentParser.parse(args);
argumentParser.parse(args);
}
}
```
Expand Down
35 changes: 0 additions & 35 deletions build.gradle.kts

This file was deleted.

Binary file removed doc/EspressoArgumentParser.odg
Binary file not shown.
Binary file removed gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 0 additions & 6 deletions gradle/wrapper/gradle-wrapper.properties

This file was deleted.

Loading

0 comments on commit 8a382b8

Please sign in to comment.