Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Nov 10, 2023
1 parent 8667ec5 commit 25e23af
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions completers/ffmpeg_completer/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,13 @@ func actionFlagArguments(flag string) carapace.Action {
name := strings.SplitN(strings.TrimLeft(flag, "-"), ":", 2)[0]
switch name {
case "c":
switch flag {
case "-c:a":
// TODO audio codecs
return ffmpeg.ActionCodecs()
case "-c:v":
return ffmpeg.ActionCodecs()
// TODO video codecs
switch {
case strings.HasPrefix(flag, "-c:a"):
return ffmpeg.ActionCodecs() // TODO audio codecs
case strings.HasPrefix(flag, "-c:v"):
return ffmpeg.ActionCodecs() // TODO video codecs
default:
return carapace.ActionValues()
return carapace.ActionValues("copy")
}
case "h", "?", "help":
return carapace.ActionMultiPartsN("=", 2, func(c carapace.Context) carapace.Action {
Expand Down

0 comments on commit 25e23af

Please sign in to comment.