Commit Graph

6021 Commits

Author SHA1 Message Date
silverqx fdff9d9ccb tom pwsh completion Register-ArgumentCompleter
Handled edge case when the $wordToComplete is $null.

 - updated docs
 - removed useless ` escape
2024-09-27 10:13:31 +02:00
silverqx a229d8bb49 tom bash completion updated comment 2024-09-27 10:11:17 +02:00
silverqx d1b713fd62 tom fixtypo 2024-09-24 14:41:44 +02:00
silverqx 904d7b46ec tom make:project sync code
- commented unused constant
2024-09-24 13:40:10 +02:00
silverqx 5043d55da4 tom sorted command constants 2024-09-24 13:40:10 +02:00
silverqx 39fe400d92 tom updated comment 2024-09-24 13:40:10 +02:00
silverqx b89bcdd095 tom added comment 2024-09-24 13:40:09 +02:00
silverqx 39b57252cf added NEWLINE_C constant 2024-09-24 13:40:09 +02:00
silverqx 38cc8ab354 tools pwsh changed validators order 2024-09-24 13:40:09 +02:00
silverqx 4fe7374a05 tools linters added -SkipTests 2024-09-24 13:40:09 +02:00
silverqx 6b32059844 tom complete greatly enhanced pwsh 2024-09-24 13:40:08 +02:00
silverqx ace0e9ebca tom complete removed pwsh workaround
The template was u"-v;v;%1"_s but it's fixed in the latest pwsh, so
used -v. I don't know when it was fixed. I will not create conditional
code branch for this.

 - removed comment
2024-09-24 13:40:08 +02:00
silverqx 62e55a7a2e tom complete fixtypo 2024-09-24 13:40:08 +02:00
silverqx a3ca4fbe0b fixtypo 2024-09-24 13:40:07 +02:00
silverqx 44e3cc072d tom complete bugfix MSYS2 ^M in ouput 2024-09-24 13:40:03 +02:00
silverqx 758733476e tom complete removed newline after complete output 2024-09-22 20:14:04 +02:00
silverqx 21541af19d tom complete added/updated comments 2024-09-22 20:14:04 +02:00
silverqx 881cb628ee tom complete block paths completion
- updated docs
 - updated pwsh stub
2024-09-22 20:14:03 +02:00
silverqx 1f8bb57817 tom complete added early exits if empty 2024-09-22 20:14:03 +02:00
silverqx 50dd7b1589 tom complete added/updated comments 2024-09-22 20:14:03 +02:00
silverqx 4871adb43b tom moved using down 2024-09-22 20:14:03 +02:00
silverqx 199b3d780b tom added section comments 2024-09-22 20:14:02 +02:00
silverqx 69712a03b6 tom updated comment 2024-09-22 20:14:02 +02:00
silverqx ca842e247a tom added comment 2024-09-22 20:14:02 +02:00
silverqx 7109b74020 fixtypo in parameter and local variable names 2024-09-22 20:14:01 +02:00
silverqx 0cf7866112 tom added section comments 2024-09-22 20:14:01 +02:00
silverqx 5651827368 tom added/updated comments 2024-09-22 20:14:01 +02:00
silverqx 4be391f673 tom formatting 2024-09-22 20:14:01 +02:00
silverqx 1da816dbae tom fixtypo 2024-09-22 20:14:00 +02:00
silverqx c1b1679be5 tom renamed method 2024-09-22 20:14:00 +02:00
silverqx 128774bfc8 tom added comments 2024-09-22 20:14:00 +02:00
silverqx dc2066c7d3 tom added comments 2024-09-22 20:13:59 +02:00
silverqx 445d734212 fixtypo 2024-09-22 20:13:59 +02:00
silverqx 662d734335 tom removed tabulate/table.hpp from headers 🙌
This commit can't be divided because everything is related.

The tabulate/table.hpp #include is too expensive to compile and it was
included everywhere and it also was exposed to the client code.

Whole code was refactored to move this header into the .cpp files.

The InteractsWithIO was also hidden in similar way, forward declared
in the TomApplication, used std::unique_ptr<>, and #include moved
to the .cpp file.

The InteractsWithIO is now private because it's fully initialized after
the TomApplication::run() method call and it would need more work.

The next change is in the InteractsWithIO::table() method, the values
passed to it aren't tabulate::Table::Row_t anymore (for header and body
rows), but are are own types. The reason for this was to get rid of
the Tabulate version number checks and based on these version checks
define the correct Tabulate row/cell types. Now, when this type will
change in the future it will not cause any problems.
These our new table row/cell values/types are internally converted
to the tabulate::Table::Row_t type.

The last change was to extract the formatting code for the Tabulate
table into the StatusCommand. These formatting code/rules were directly
defined in the InteractsWithIO::table() method and that was a bug.
I have added the FormatTableCallback that can be passed to this InteractsWithIO::table() method that allows to format Tabulate table.

 - updated all InteractsWithIO method calls through the io() getter
 - moved the Application::~Application() to the .cpp file (non-inline)
 - exposed the isAnsiW/Output() methods (made public)
 - removed the InteractsWithIO() constructor and
   initialize(const QCommandLineParser &) methods
 - moved the Tabulate table formatting logic to the StatusCommand
 - removed Tabulate version checks thx to our own types
2024-09-22 20:13:53 +02:00
silverqx 1d044bd8c6 tom added/updated comments and fixtypo 2024-09-16 17:55:41 +02:00
silverqx 9291e817f3 tom bugfix called IO directly 2024-09-16 17:55:41 +02:00
silverqx c72ad730fe used constexpr 2024-09-16 17:55:41 +02:00
silverqx d41ee24ae2 tom fixtypo 2024-09-16 17:55:40 +02:00
silverqx 40f0c488b9 tom enhanced table formatting in status command
- right aligned the Batch column
 - simplified formatting of the Ran? column
2024-09-16 12:06:25 +02:00
silverqx b559f22776 tools upgraded to Clang Tidy v19 2024-09-15 20:54:23 +02:00
silverqx 8256cceb55 updated NOTES.txt 2024-09-15 20:45:57 +02:00
silverqx 283f84a49b used std::move() 2024-09-15 20:42:20 +02:00
silverqx fd9ce104ed added reserve() 2024-09-15 20:42:20 +02:00
silverqx 619f62c3c2 tom fixtypo 2024-09-15 20:42:20 +02:00
silverqx 2845947721 tom removed useless alias 2024-09-15 20:42:20 +02:00
silverqx 2465865651 tom renamed method parameter 2024-09-15 20:42:20 +02:00
silverqx 5e5c404ed2 tom fixtypo 2024-09-15 20:42:19 +02:00
silverqx 091fb151c2 added explicit to default constructor 2024-09-15 20:42:19 +02:00
silverqx 22b11c3f52 models added comment 2024-09-15 20:42:19 +02:00
silverqx 9654cd4516 whitespaces/formatting 2024-09-15 20:42:19 +02:00