csv2xlsx n'est plus utile

This commit is contained in:
Jephté Clain 2025-11-18 17:53:10 +04:00
parent 7416b28032
commit 079c154ef2
3 changed files with 0 additions and 31 deletions

View File

@ -1,7 +0,0 @@
#!/usr/bin/php
<?php
require $_composer_autoload_path?? __DIR__.'/../vendor/autoload.php';
use cli\Csv2xlsxApp;
Csv2xlsxApp::run();

View File

@ -1,23 +0,0 @@
<?php
namespace cli;
use nulib\app\cli\Application;
use nulib\cv;
use nulib\ext\tab\SsBuilder;
use nulib\ext\tab\SsReader;
use nulib\file;
use nulib\os\path;
class Csv2xlsxApp extends Application {
function main() {
$input = cv::not_null($this->args[0] ?? null, "input");
$inputname = path::filename($input);
$output = path::ensure_ext($inputname, ".xlsx", ".csv");
$reader = SsReader::with($input);
$builder = SsBuilder::with($output);
$builder->writeAll($reader);
$builder->build();
$builder->copyTo(file::writer($output), true);
}
}

View File

@ -79,7 +79,6 @@
}
},
"bin": [
"bin/csv2xlsx.php",
"nur_bin/compctl.php",
"nur_bin/compdep.php",
"nur_bin/datectl.php",