csv2xlsx n'est plus utile
This commit is contained in:
parent
7416b28032
commit
079c154ef2
@ -1,7 +0,0 @@
|
||||
#!/usr/bin/php
|
||||
<?php
|
||||
require $_composer_autoload_path?? __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
use cli\Csv2xlsxApp;
|
||||
|
||||
Csv2xlsxApp::run();
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
@ -79,7 +79,6 @@
|
||||
}
|
||||
},
|
||||
"bin": [
|
||||
"bin/csv2xlsx.php",
|
||||
"nur_bin/compctl.php",
|
||||
"nur_bin/compdep.php",
|
||||
"nur_bin/datectl.php",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user