mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-14 23:33:52 +01:00
feat: match file
This commit is contained in:
parent
5858b5b88b
commit
7cfe075da6
5 changed files with 94 additions and 25 deletions
|
|
@ -1,10 +1,11 @@
|
|||
use colored::*;
|
||||
use crate::corrections::split_command;
|
||||
|
||||
pub fn highlight_difference(corrected_command: &str, last_command: &str) -> String {
|
||||
let mut highlighted_command = String::new();
|
||||
|
||||
let split_corrected_command = corrected_command.split(' ');
|
||||
let split_last_command = last_command.split(' ');
|
||||
let split_corrected_command = split_command(corrected_command);
|
||||
let split_last_command = split_command(last_command);
|
||||
|
||||
for new in split_corrected_command {
|
||||
if new == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue