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.
This commit is contained in:
Orne Brocaar 2022-11-30 10:02:42 +00:00
parent dda9d3ffac
commit 364a4ac48c
3 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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);