From 364a4ac48c2af02673754a5e2bbd1bef3b5662a5 Mon Sep 17 00:00:00 2001 From: Orne Brocaar Date: Wed, 30 Nov 2022 10:02:42 +0000 Subject: [PATCH] Rename to import_legacy_lorawan_devices_repository. The lorawan-devices repository structure is going to change and the latest revisions no longer contain a LICENSE file. This does mean that the latest data can't be imported and we will be missing newly added devices and potential bugfixes. However, it does provide time to work on a better solution. As requested, TTN and The Things Network is no longer used in the naming and description. Closes #61. --- ...ces.rs => import_legacy_lorawan_devices_repository.rs} | 0 chirpstack/src/cmd/mod.rs | 2 +- chirpstack/src/main.rs | 8 ++++---- 3 files changed, 5 insertions(+), 5 deletions(-) rename chirpstack/src/cmd/{import_ttn_lorawan_devices.rs => import_legacy_lorawan_devices_repository.rs} (100%) diff --git a/chirpstack/src/cmd/import_ttn_lorawan_devices.rs b/chirpstack/src/cmd/import_legacy_lorawan_devices_repository.rs similarity index 100% rename from chirpstack/src/cmd/import_ttn_lorawan_devices.rs rename to chirpstack/src/cmd/import_legacy_lorawan_devices_repository.rs diff --git a/chirpstack/src/cmd/mod.rs b/chirpstack/src/cmd/mod.rs index f9b4e53f..9dfa32cb 100644 --- a/chirpstack/src/cmd/mod.rs +++ b/chirpstack/src/cmd/mod.rs @@ -1,4 +1,4 @@ pub mod configfile; -pub mod import_ttn_lorawan_devices; +pub mod import_legacy_lorawan_devices_repository; pub mod print_ds; pub mod root; diff --git a/chirpstack/src/main.rs b/chirpstack/src/main.rs index 4b683881..99e5cd30 100644 --- a/chirpstack/src/main.rs +++ b/chirpstack/src/main.rs @@ -66,8 +66,8 @@ enum Commands { dev_eui: String, }, - /// Import TheThingsNetwork LoRaWAN devices repository - ImportTtnLorawanDevices { + /// Import legacy lorawan-devices repository. + ImportLegacyLorawanDevicesRepository { /// Path to repository root. #[arg(short, long, value_name = "DIR")] dir: String, @@ -102,8 +102,8 @@ async fn main() -> Result<()> { process::exit(0); } - if let Some(Commands::ImportTtnLorawanDevices { dir }) = &cli.command { - cmd::import_ttn_lorawan_devices::run(Path::new(&dir)) + if let Some(Commands::ImportLegacyLorawanDevicesRepository { dir }) = &cli.command { + cmd::import_legacy_lorawan_devices_repository::run(Path::new(&dir)) .await .unwrap(); process::exit(0);