-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
1,117 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Process this file with autoconf to produce a configure script. | ||
|
||
AC_PREREQ([2.69]) | ||
AC_INIT([gcli],[1.1.0],[[email protected]],[gcli],[https://gitlab.com/herrhotzenplotz/gcli/]) | ||
AC_INIT([gcli],[1.2.0],[[email protected]],[gcli],[https://gitlab.com/herrhotzenplotz/gcli/]) | ||
AM_INIT_AUTOMAKE([1.0 foreign subdir-objects dist-bzip2 dist-xz -Wall]) | ||
|
||
dnl Release Date. | ||
|
@@ -38,7 +38,7 @@ OPT_LIBCURL=$withval | |
|
||
AS_IF([test "x$OPT_LIBCURL" = "xno"], | ||
[AC_MSG_ERROR([--with-libcurl must not be disabled])]) | ||
AS_IF([test "x$OPT_LIBCURL" = "xcheck"], | ||
AS_IF([test "x$OPT_LIBCURL" = "xcheck" || test "x$OPT_LIBCURL" = "xyes"], | ||
[PKG_CHECK_MODULES([LIBCURL], [libcurl],,[AC_MSG_ERROR([Could not find libcurl])]) | ||
CFLAGS="$LIBCURL_CFLAGS $CFLAGS" | ||
LDFLAGS="$LIBCURL_LIBS $LDFLAGS"], | ||
|
@@ -64,6 +64,7 @@ dnl Generate and substitute various files | |
AC_CONFIG_FILES([Makefile | ||
docs/gcli-api.1 | ||
docs/gcli-comment.1 | ||
docs/gcli-config.1 | ||
docs/gcli-forks.1 | ||
docs/gcli-gists.1 | ||
docs/gcli-issues.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
.Dd @PACKAGE_DATE@ | ||
.Dt GCLI-ISSUES 1 | ||
.Os @PACKAGE_STRING@ | ||
.Sh NAME | ||
.Nm gcli config | ||
.Nd Git Forge Configuration | ||
.Sh SYNOPSIS | ||
.Nm | ||
.Cm ssh | ||
.Nm | ||
.Cm ssh add | ||
.Fl t Ar title | ||
.Fl k Ar keypath | ||
.Nm | ||
.Cm ssh delete | ||
.Fl i Ar id | ||
.Sh DESCRIPTION | ||
.Nm | ||
is used to change the settings of the Git Forge Account. You can use | ||
it to e.g. add or delete SSH Public Keys used to push to forges. | ||
.Sh OPTIONS | ||
.Bl -tag -width xxxxxxxxxxxxxxxxx | ||
.It Fl t , -title Ar title | ||
Set the title of the SSH Key to be added. This is a short description | ||
of the key. | ||
.It Fl k , -key Pa keypath | ||
Path to the file containing the SSH public key. | ||
.It Fl i , -id Ar id | ||
ID of the public key to delete. | ||
.El | ||
. | ||
.Sh SUBCOMMANDS | ||
.Bl -tag -width xxxxxxxxxxx | ||
.It Cm ssh | ||
List SSH public keys for the current user. | ||
.It Cm ssh add | ||
Add a SSH public key for the current user. | ||
.It Cm ssh delete | ||
Delete a SSH public key for the current user. | ||
.El | ||
.Sh EXAMPLES | ||
Print a list of registered SSH public keys: | ||
.Bd -literal -offset indent | ||
$ gcli config ssh | ||
.Ed | ||
.Pp | ||
Register ~/.ssh/id_rsa.pub on the default forge: | ||
.Bd -literal -offset indent | ||
$ gcli config ssh add \\ | ||
-t "Key for $(hostname)" \\ | ||
-k ~/.ssh/id_rsa.pub | ||
.Ed | ||
.Pp | ||
.Sh SEE ALSO | ||
.Xr git 1 , | ||
.Xr gcli 1 | ||
.Sh AUTHORS | ||
.An Nico Sonack aka. herrhotzenplotz Aq Mt [email protected] | ||
and contributors. | ||
.Sh BUGS | ||
When using this feature to manage SSH keys on Github be aware that you need the | ||
.Dq read:public_key | ||
scope enabled on your access token. You will receive HTTP 404 errors | ||
otherwise. | ||
.Pp | ||
Please report bugs at @PACKAGE_URL@, via E-Mail to @PACKAGE_BUGREPORT@ | ||
or on Github. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright 2023 Nico Sonack <[email protected]> | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* | ||
* 1. Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* | ||
* 2. Redistributions in binary form must reproduce the above | ||
* copyright notice, this list of conditions and the following | ||
* disclaimer in the documentation and/or other materials provided | ||
* with the distribution. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, | ||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
* OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
#ifndef GCLI_GITEA_SSHKEYS_H | ||
#define GCLI_GITEA_SSHKEYS_H | ||
|
||
#include <gcli/sshkeys.h> | ||
|
||
int gitea_get_sshkeys(gcli_sshkey_list *out); | ||
int gitea_add_sshkey(char const *title, | ||
char const *public_key_data, | ||
gcli_sshkey *out); | ||
int gitea_delete_sshkey(int id); | ||
|
||
#endif /* GCLI_GITEA_SSHKEYS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright 2023 Nico Sonack <[email protected]> | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions | ||
* are met: | ||
* | ||
* 1. Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* | ||
* 2. Redistributions in binary form must reproduce the above | ||
* copyright notice, this list of conditions and the following | ||
* disclaimer in the documentation and/or other materials provided | ||
* with the distribution. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, | ||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
* OF THE POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
#ifndef GCLI_GITHUB_SSHKEYS_H | ||
#define GCLI_GITHUB_SSHKEYS_H | ||
|
||
#include <gcli/sshkeys.h> | ||
|
||
int github_get_sshkeys(gcli_sshkey_list *out); | ||
int github_add_sshkey(char const *const title, | ||
char const *const pubkey, | ||
gcli_sshkey *out); | ||
int github_delete_sshkey(int id); | ||
|
||
#endif /* GCLI_GITHUB_SSHKEYS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.