Gitlab Shell Client

Java Client for remote administration of Gitlab Shell

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

com.feedhenry.gitlabshell
ArtifactId

ArtifactId

gitlab-shell-client
Last Version

Last Version

4.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

Gitlab Shell Client
Java Client for remote administration of Gitlab Shell
Project URL

Project URL

https://github.com/feedhenry/gitlab-shell-client
Source Code Management

Source Code Management

https://github.com/feedhenry/gitlab-shell-client.git

Download gitlab-shell-client

How to add to project

<!-- https://jarcasting.com/artifacts/com.feedhenry.gitlabshell/gitlab-shell-client/ -->
<dependency>
    <groupId>com.feedhenry.gitlabshell</groupId>
    <artifactId>gitlab-shell-client</artifactId>
    <version>4.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.feedhenry.gitlabshell/gitlab-shell-client/
implementation 'com.feedhenry.gitlabshell:gitlab-shell-client:4.0.2'
// https://jarcasting.com/artifacts/com.feedhenry.gitlabshell/gitlab-shell-client/
implementation ("com.feedhenry.gitlabshell:gitlab-shell-client:4.0.2")
'com.feedhenry.gitlabshell:gitlab-shell-client:jar:4.0.2'
<dependency org="com.feedhenry.gitlabshell" name="gitlab-shell-client" rev="4.0.2">
  <artifact name="gitlab-shell-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.feedhenry.gitlabshell', module='gitlab-shell-client', version='4.0.2')
)
libraryDependencies += "com.feedhenry.gitlabshell" % "gitlab-shell-client" % "4.0.2"
[com.feedhenry.gitlabshell/gitlab-shell-client "4.0.2"]

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.commons : commons-lang3 jar 3.3.2
com.jcraft : jsch jar 0.1.51

test (2)

Group / Artifact Type Version
org.mockito : mockito-all jar 1.9.5
junit : junit jar [4,5)

Project Modules

There are no modules declared in this project.

Gitlab Shell Client

Build Status Maven Central

Java Client for remote administration of Gitlab Shell

Installation

Maven (pom.xml)

<dependency>
    <groupId>com.feedhenry.gitlabshell</groupId>
    <artifactId>gitlab-shell-client</artifactId>
    <version>X.Y.Z</version>
</dependency>

Gradle (build.gradle)

dependencies {
  compile 'com.feedhenry.gitlabshell:gitlab-shell-client:X.Y.Z'
}

Usage

GLSClient client = new GLSClient.Builder()
  .user("git")
  .host("127.0.0.1")
  .port(22)
  .publicKey("ssh-rsa AAAA....")
  .privateKey("-----BEGIN RSA PRIVATE KEY-----\nMIIEow....\n-----END RSA PRIVATE KEY-----")
  .build();

List<GLSKey> keys = client.listKeys();

String[] projects = client.getProjects();

client.addProject("myrepos/repo1");

client.rmProject("myrepos/repo1");

client.addKey("user1", "ssh-rsa AAAA.... [email protected]");

client.rmKey("user1");

To run a custom ssh command

client.executeCommand("echo 'hello'");
com.feedhenry.gitlabshell

FeedHenry

Versions

Version
4.0.2
4.0.1
4.0.0
3.0.2
3.0.1
3.0.0
2.0.0
1.2.1
1.2
1.1
1.0