src/cli/lib/transaction.h \
src/cli/lib/update.c \
src/cli/lib/update.h \
+ src/cli/lib/upload.c \
+ src/cli/lib/upload.h \
+ src/cli/lib/upload_list.c \
+ src/cli/lib/upload_list.h \
src/cli/lib/version.c \
src/cli/lib/version.h
--- /dev/null
+/*#############################################################################
+# #
+# Pakfire - The IPFire package management system #
+# Copyright (C) 2023 Pakfire development team #
+# #
+# This program is free software: you can redistribute it and/or modify #
+# it under the terms of the GNU General Public License as published by #
+# the Free Software Foundation, either version 3 of the License, or #
+# (at your option) any later version. #
+# #
+# This program is distributed in the hope that it will be useful, #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
+# GNU General Public License for more details. #
+# #
+# You should have received a copy of the GNU General Public License #
+# along with this program. If not, see <http://www.gnu.org/licenses/>. #
+# #
+#############################################################################*/
+
+#include "command.h"
+#include "upload.h"
+#include "upload_list.h"
+
+static const char* args_doc =
+ "list";
+
+int cli_upload(void* data, int argc, char* argv[]) {
+ static const struct command commands[] = {
+ { "list", cli_upload_list, 0, 0, 0 },
+ { NULL },
+ };
+
+ return cli_parse(NULL, commands, args_doc, NULL, NULL, argc, argv, data);
+}
--- /dev/null
+/*#############################################################################
+# #
+# Pakfire - The IPFire package management system #
+# Copyright (C) 2023 Pakfire development team #
+# #
+# This program is free software: you can redistribute it and/or modify #
+# it under the terms of the GNU General Public License as published by #
+# the Free Software Foundation, either version 3 of the License, or #
+# (at your option) any later version. #
+# #
+# This program is distributed in the hope that it will be useful, #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
+# GNU General Public License for more details. #
+# #
+# You should have received a copy of the GNU General Public License #
+# along with this program. If not, see <http://www.gnu.org/licenses/>. #
+# #
+#############################################################################*/
+
+#ifndef PAKFIRE_CLI_UPLOAD_H
+#define PAKFIRE_CLI_UPLOAD_H
+
+int cli_upload(void* data, int argc, char* argv[]);
+
+#endif /* PAKFIRE_CLI_UPLOAD_H */
--- /dev/null
+/*#############################################################################
+# #
+# Pakfire - The IPFire package management system #
+# Copyright (C) 2023 Pakfire development team #
+# #
+# This program is free software: you can redistribute it and/or modify #
+# it under the terms of the GNU General Public License as published by #
+# the Free Software Foundation, either version 3 of the License, or #
+# (at your option) any later version. #
+# #
+# This program is distributed in the hope that it will be useful, #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
+# GNU General Public License for more details. #
+# #
+# You should have received a copy of the GNU General Public License #
+# along with this program. If not, see <http://www.gnu.org/licenses/>. #
+# #
+#############################################################################*/
+
+#include <pakfire/ctx.h>
+
+#include "command.h"
+#include "upload_list.h"
+
+static const char* doc = "Lists all uploads";
+
+int cli_upload_list(void* data, int argc, char* argv[]) {
+ struct pakfire_ctx* ctx = data;
+ int r;
+
+ // Parse the command line
+ r = cli_parse(NULL, NULL, NULL, doc, NULL, argc, argv, NULL);
+ if (r)
+ goto ERROR;
+
+ // XXX TODO
+
+ERROR:
+ return r;
+}
--- /dev/null
+/*#############################################################################
+# #
+# Pakfire - The IPFire package management system #
+# Copyright (C) 2023 Pakfire development team #
+# #
+# This program is free software: you can redistribute it and/or modify #
+# it under the terms of the GNU General Public License as published by #
+# the Free Software Foundation, either version 3 of the License, or #
+# (at your option) any later version. #
+# #
+# This program is distributed in the hope that it will be useful, #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
+# GNU General Public License for more details. #
+# #
+# You should have received a copy of the GNU General Public License #
+# along with this program. If not, see <http://www.gnu.org/licenses/>. #
+# #
+#############################################################################*/
+
+#ifndef PAKFIRE_CLI_UPLOAD_LIST_H
+#define PAKFIRE_CLI_UPLOAD_LIST_H
+
+int cli_upload_list(void* data, int argc, char* argv[]);
+
+#endif /* PAKFIRE_CLI_UPLOAD_LIST_H */
#include "lib/command.h"
#include "lib/progressbar.h"
+#include "lib/upload.h"
const char* argp_program_version = PACKAGE_VERSION;
static const struct command commands[] = {
- // No commands, yet
+ { "upload", cli_upload, -1, -1, 0 },
{ NULL },
};
-static const char* args_doc = NULL;
+static const char* args_doc =
+ "upload ...";
static const char* doc = "The Pakfire Build Service Client Tool";