Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API improvements #30

Merged
merged 9 commits into from
Aug 29, 2024
Merged

API improvements #30

merged 9 commits into from
Aug 29, 2024

Conversation

mat-hek
Copy link
Member

@mat-hek mat-hek commented Aug 27, 2024

No description provided.

@mat-hek mat-hek requested a review from Noarkhh August 27, 2024 16:44
@mat-hek mat-hek changed the base branch from master to ex August 27, 2024 16:44
@@ -77,4 +77,24 @@ defmodule Boombox.MP4 do

%Ready{actions: [spec: spec]}
end

defp resolve_transport(location, opts) do
Copy link
Contributor

Choose a reason for hiding this comment

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

I think a function resolving the transport would be better to have in Boombox.Pipeline, since the transport option won't be unique to mp4 files (for example we'll support streaming HLS to a server).


@spec get_switch_type([String.t()], atom(), Keyword.t()) :: :boolean | :string
defp get_switch_type(argv, option, aliases) do
with [] <- OptionParser.parse(argv, strict: [{option, :string}], aliases: aliases) |> elem(0),
Copy link
Contributor

Choose a reason for hiding this comment

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

pretty esoteric use of with, I like it :P

Copy link
Member Author

Choose a reason for hiding this comment

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

🪄

Base automatically changed from ex to master August 29, 2024 10:57
@mat-hek mat-hek merged commit e5e6271 into master Aug 29, 2024
3 checks passed
@mat-hek mat-hek deleted the api branch August 29, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants