()
| 731 | // Main Entry Point |
| 732 | |
| 733 | fn main() { |
| 734 | // Initialize logging |
| 735 | env_logger::init(); |
| 736 | |
| 737 | // Parse command-line arguments |
| 738 | let cli = Cli::parse(); |
| 739 | |
| 740 | // Configure color output |
| 741 | if cli.no_color { |
| 742 | // Disable colors globally |
| 743 | console::set_colors_enabled(false); |
| 744 | console::set_colors_enabled_stderr(false); |
| 745 | } |
| 746 | |
| 747 | // Execute the command and handle errors |
| 748 | let result = match cli.command { |
| 749 | Commands::Agent(agent) => agent.run(), |
| 750 | |
| 751 | Commands::Init(init) => init.run(), |
| 752 | |
| 753 | Commands::Status(status) => status.run(), |
| 754 | |
| 755 | Commands::Add(add) => add.run(), |
| 756 | |
| 757 | Commands::Remove(remove) => remove.run(), |
| 758 | |
| 759 | Commands::Move(mv) => mv.run(), |
| 760 | |
| 761 | Commands::Restore(restore) => restore.run(), |
| 762 | |
| 763 | Commands::Sandbox(sandbox) => sandbox.run(), |
| 764 | |
| 765 | Commands::Split(split) => split.run(), |
| 766 | |
| 767 | Commands::Record(record) => record.run(), |
| 768 | |
| 769 | Commands::Revise(revise) => revise.run(), |
| 770 | |
| 771 | Commands::Log(log) => log.run(), |
| 772 | |
| 773 | Commands::Change(change) => change.run(), |
| 774 | |
| 775 | Commands::Diff(diff) => diff.run(), |
| 776 | |
| 777 | Commands::Doctor(doctor) => doctor.run(), |
| 778 | |
| 779 | Commands::Git(git) => git.run(), |
| 780 | |
| 781 | Commands::Insert(insert) => insert.run(), |
| 782 | |
| 783 | Commands::View(view) => view.run(), |
| 784 | |
| 785 | Commands::Stash(stash) => stash.run(), |
| 786 | |
| 787 | Commands::Push(push) => push.run(), |
| 788 | |
| 789 | Commands::Pull(pull) => pull.run(), |
| 790 |
nothing calls this directly
no test coverage detected