Skip to content

Conversation

@Ro6afF
Copy link
Contributor

@Ro6afF Ro6afF commented Oct 14, 2025

Start splitting codetracer into multiple components and implement launcher to handle this splits.

@Ro6afF Ro6afF self-assigned this Oct 14, 2025
@alehander92 alehander92 added enhancement New feature or request refactor A system was refactored ct-entrypoint Issues related to the ct utility packaging Any issue that has come from a specific package or distribution scheme labels Oct 14, 2025
use crate::{db, subcommands::run_external, Lang, RecordOptions};

pub fn run_record(options: RecordOptions) {
println!("{:#?}", options);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should return Result for most of the internal functions

let lang = options.lang.or_else(|| detect_language(&options.program));
println!("{:#?}", lang);
if lang.is_none() {
panic!("Can't determine language"); // TODO: better error and what to do?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return Err("..".into()) (or a more specific kind of error)

@alehander92 alehander92 added this to the code review milestone Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ct-entrypoint Issues related to the ct utility enhancement New feature or request packaging Any issue that has come from a specific package or distribution scheme refactor A system was refactored

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants