Skip to content

Commit

Permalink
Merge pull request #2 from gdgib/G2-1540-Code
Browse files Browse the repository at this point in the history
G2-1540 Code CLI tester
  • Loading branch information
gdgib committed Feb 28, 2024
2 parents d83e4d2 + 5f2c37c commit 9c0dd93
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 101 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
/bulldozer-temp.json
/bulldozer-state.json
/.factorypath
*.obj
*.exe
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# clireport
# CLIReport

A tool to report CLI arguments
A tool to report CLI arguments.
7 changes: 0 additions & 7 deletions clir-project/.gitignore

This file was deleted.

83 changes: 0 additions & 83 deletions clir-project/pom.xml

This file was deleted.

11 changes: 11 additions & 0 deletions clireport.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include <stdio.h>

int main(int argc, char* argv[])
{
printf("CLIReport: %d arguments\n", argc);
for (int i = 0; i < argc; i++) {
char* argument = argv[i];
printf("%04d: %s\n", (unsigned)strlen(argument), argument);
}
return 0;
}
82 changes: 73 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,84 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.g2forge.clireport</groupId>
<artifactId>clireport</artifactId>
<packaging>pom</packaging>
<version>0.0.1-SNAPSHOT</version>

<parent>
<groupId>com.g2forge.clireport</groupId>
<artifactId>clir-project</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>clir-project/pom.xml</relativePath>
</parent>
<properties>
<clireport.organization>g2forge</clireport.organization>
<clireport.name>clireport</clireport.name>
<clireport.repository>clireport</clireport.repository>
</properties>

<name>clireport</name>
<description>A tool to report CLI arguments</description>
<url>
https://github.com/${clireport.organization}/${clireport.repository}/tree/${project.version}/${project.artifactId}</url>
<developers>
<developer>
<name>Greg Gibeling</name>
<email>gdgib@outlook.com</email>
<organization>G2 Forge</organization>
<organizationUrl>http://www.g2forge.com</organizationUrl>
</developer>
</developers>
<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>
https://github.com/${clireport.organization}/${clireport.repository}/blob/${project.version}/LICENSE</url>
</license>
</licenses>

<modules>
<module>clir-project</module>
</modules>
<scm>
<connection>
scm:git:git://github.com/${clireport.organization}/${clireport.repository}.git</connection>
<developerConnection>
scm:git:ssh://github.com:${clireport.organization}/${clireport.repository}.git</developerConnection>
<url>
http://github.com/${clireport.organization}/${clireport.repository}/tree/${project.version}</url>
</scm>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.5</version>
<configuration />
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release-snapshot</id>
<repositories>
<repository>
<id>github-</id>
<url>https://maven.pkg.github.com/g2forge/*</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub g2forge Apache Maven Packages</name>
<url>https://maven.pkg.github.com/g2forge/clireport</url>
</repository>
<snapshotRepository>
<id>github</id>
<name>GitHub g2forge Apache Maven Packages</name>
<url>https://maven.pkg.github.com/g2forge/clireport</url>
</snapshotRepository>
</distributionManagement>
</profile>
</profiles>
</project>

0 comments on commit 9c0dd93

Please sign in to comment.