From 63fb7df81c534d8e8cac062c9d41f6331336d961 Mon Sep 17 00:00:00 2001 From: Felicitas Pojtinger Date: Mon, 20 Dec 2021 01:36:09 +0100 Subject: [PATCH] refactor: Move `stfs` command to `cmd` package to allow for re-usable `Makefile` --- cmd/{ => stfs/cmd}/drive_eject.go | 0 cmd/{ => stfs/cmd}/drive_root.go | 0 cmd/{ => stfs/cmd}/drive_tell.go | 0 cmd/{ => stfs/cmd}/inventory_find.go | 0 cmd/{ => stfs/cmd}/inventory_list.go | 0 cmd/{ => stfs/cmd}/inventory_root.go | 0 cmd/{ => stfs/cmd}/inventory_stat.go | 0 cmd/{ => stfs/cmd}/keygen.go | 0 cmd/{ => stfs/cmd}/operation_archive.go | 0 cmd/{ => stfs/cmd}/operation_delete.go | 0 cmd/{ => stfs/cmd}/operation_move.go | 0 cmd/{ => stfs/cmd}/operation_restore.go | 0 cmd/{ => stfs/cmd}/operation_root.go | 0 cmd/{ => stfs/cmd}/operation_update.go | 0 cmd/{ => stfs/cmd}/recovery_fetch.go | 0 cmd/{ => stfs/cmd}/recovery_index.go | 0 cmd/{ => stfs/cmd}/recovery_query.go | 0 cmd/{ => stfs/cmd}/recovery_root.go | 0 cmd/{ => stfs/cmd}/root.go | 0 cmd/{ => stfs/cmd}/serve_ftp.go | 0 cmd/{ => stfs/cmd}/serve_http.go | 0 cmd/{ => stfs/cmd}/serve_root.go | 0 main.go => cmd/stfs/main.go | 2 +- 23 files changed, 1 insertion(+), 1 deletion(-) rename cmd/{ => stfs/cmd}/drive_eject.go (100%) rename cmd/{ => stfs/cmd}/drive_root.go (100%) rename cmd/{ => stfs/cmd}/drive_tell.go (100%) rename cmd/{ => stfs/cmd}/inventory_find.go (100%) rename cmd/{ => stfs/cmd}/inventory_list.go (100%) rename cmd/{ => stfs/cmd}/inventory_root.go (100%) rename cmd/{ => stfs/cmd}/inventory_stat.go (100%) rename cmd/{ => stfs/cmd}/keygen.go (100%) rename cmd/{ => stfs/cmd}/operation_archive.go (100%) rename cmd/{ => stfs/cmd}/operation_delete.go (100%) rename cmd/{ => stfs/cmd}/operation_move.go (100%) rename cmd/{ => stfs/cmd}/operation_restore.go (100%) rename cmd/{ => stfs/cmd}/operation_root.go (100%) rename cmd/{ => stfs/cmd}/operation_update.go (100%) rename cmd/{ => stfs/cmd}/recovery_fetch.go (100%) rename cmd/{ => stfs/cmd}/recovery_index.go (100%) rename cmd/{ => stfs/cmd}/recovery_query.go (100%) rename cmd/{ => stfs/cmd}/recovery_root.go (100%) rename cmd/{ => stfs/cmd}/root.go (100%) rename cmd/{ => stfs/cmd}/serve_ftp.go (100%) rename cmd/{ => stfs/cmd}/serve_http.go (100%) rename cmd/{ => stfs/cmd}/serve_root.go (100%) rename main.go => cmd/stfs/main.go (50%) diff --git a/cmd/drive_eject.go b/cmd/stfs/cmd/drive_eject.go similarity index 100% rename from cmd/drive_eject.go rename to cmd/stfs/cmd/drive_eject.go diff --git a/cmd/drive_root.go b/cmd/stfs/cmd/drive_root.go similarity index 100% rename from cmd/drive_root.go rename to cmd/stfs/cmd/drive_root.go diff --git a/cmd/drive_tell.go b/cmd/stfs/cmd/drive_tell.go similarity index 100% rename from cmd/drive_tell.go rename to cmd/stfs/cmd/drive_tell.go diff --git a/cmd/inventory_find.go b/cmd/stfs/cmd/inventory_find.go similarity index 100% rename from cmd/inventory_find.go rename to cmd/stfs/cmd/inventory_find.go diff --git a/cmd/inventory_list.go b/cmd/stfs/cmd/inventory_list.go similarity index 100% rename from cmd/inventory_list.go rename to cmd/stfs/cmd/inventory_list.go diff --git a/cmd/inventory_root.go b/cmd/stfs/cmd/inventory_root.go similarity index 100% rename from cmd/inventory_root.go rename to cmd/stfs/cmd/inventory_root.go diff --git a/cmd/inventory_stat.go b/cmd/stfs/cmd/inventory_stat.go similarity index 100% rename from cmd/inventory_stat.go rename to cmd/stfs/cmd/inventory_stat.go diff --git a/cmd/keygen.go b/cmd/stfs/cmd/keygen.go similarity index 100% rename from cmd/keygen.go rename to cmd/stfs/cmd/keygen.go diff --git a/cmd/operation_archive.go b/cmd/stfs/cmd/operation_archive.go similarity index 100% rename from cmd/operation_archive.go rename to cmd/stfs/cmd/operation_archive.go diff --git a/cmd/operation_delete.go b/cmd/stfs/cmd/operation_delete.go similarity index 100% rename from cmd/operation_delete.go rename to cmd/stfs/cmd/operation_delete.go diff --git a/cmd/operation_move.go b/cmd/stfs/cmd/operation_move.go similarity index 100% rename from cmd/operation_move.go rename to cmd/stfs/cmd/operation_move.go diff --git a/cmd/operation_restore.go b/cmd/stfs/cmd/operation_restore.go similarity index 100% rename from cmd/operation_restore.go rename to cmd/stfs/cmd/operation_restore.go diff --git a/cmd/operation_root.go b/cmd/stfs/cmd/operation_root.go similarity index 100% rename from cmd/operation_root.go rename to cmd/stfs/cmd/operation_root.go diff --git a/cmd/operation_update.go b/cmd/stfs/cmd/operation_update.go similarity index 100% rename from cmd/operation_update.go rename to cmd/stfs/cmd/operation_update.go diff --git a/cmd/recovery_fetch.go b/cmd/stfs/cmd/recovery_fetch.go similarity index 100% rename from cmd/recovery_fetch.go rename to cmd/stfs/cmd/recovery_fetch.go diff --git a/cmd/recovery_index.go b/cmd/stfs/cmd/recovery_index.go similarity index 100% rename from cmd/recovery_index.go rename to cmd/stfs/cmd/recovery_index.go diff --git a/cmd/recovery_query.go b/cmd/stfs/cmd/recovery_query.go similarity index 100% rename from cmd/recovery_query.go rename to cmd/stfs/cmd/recovery_query.go diff --git a/cmd/recovery_root.go b/cmd/stfs/cmd/recovery_root.go similarity index 100% rename from cmd/recovery_root.go rename to cmd/stfs/cmd/recovery_root.go diff --git a/cmd/root.go b/cmd/stfs/cmd/root.go similarity index 100% rename from cmd/root.go rename to cmd/stfs/cmd/root.go diff --git a/cmd/serve_ftp.go b/cmd/stfs/cmd/serve_ftp.go similarity index 100% rename from cmd/serve_ftp.go rename to cmd/stfs/cmd/serve_ftp.go diff --git a/cmd/serve_http.go b/cmd/stfs/cmd/serve_http.go similarity index 100% rename from cmd/serve_http.go rename to cmd/stfs/cmd/serve_http.go diff --git a/cmd/serve_root.go b/cmd/stfs/cmd/serve_root.go similarity index 100% rename from cmd/serve_root.go rename to cmd/stfs/cmd/serve_root.go diff --git a/main.go b/cmd/stfs/main.go similarity index 50% rename from main.go rename to cmd/stfs/main.go index 3120e2f..d246164 100644 --- a/main.go +++ b/cmd/stfs/main.go @@ -1,6 +1,6 @@ package main -import "github.com/pojntfx/stfs/cmd" +import "github.com/pojntfx/stfs/cmd/stfs/cmd" func main() { cmd.Execute()