Skip to content

Commit

Permalink
Fix get channel output format (#3784)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkurepa authored Aug 5, 2024
1 parent fa12960 commit 918083a
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ internal class GetChannelCommandLineOptions : CommandLineOptions<GetChannelOpera
{
[Option("id", Required = true, HelpText = "ID of the channel to show.")]
public int Id { get; set; }

public override bool IsOutputFormatSupported()
=> OutputFormat switch
{
DarcOutputType.json => true,
_ => base.IsOutputFormatSupported(),
};
}

0 comments on commit 918083a

Please sign in to comment.