Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ private static string FormatResponse(ParseResult parseResult, global::Pruna.Pred

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"create-prediction", @"Create a prediction for a Pruna model.");
var command = new Command(commandName ?? @"create-prediction", @"Create a prediction for a Pruna model.");
command.Options.Add(Model);
command.Options.Add(TrySync);
command.Options.Add(InputOption);
Expand Down
4 changes: 2 additions & 2 deletions src/cli/Pruna.CLI/Commands/GetFileCommandApiCommand.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::Pruna.File

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"get-file", @"Get uploaded file metadata.");
var command = new Command(commandName ?? @"get-file", @"Get uploaded file metadata.");
command.Arguments.Add(Id);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ internal static partial class GetPredictionDeliveryCommandApiCommand

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"get-prediction-delivery", @"Download or retrieve a generated prediction artifact.");
var command = new Command(commandName ?? @"get-prediction-delivery", @"Download or retrieve a generated prediction artifact.");
command.Arguments.Add(DeliveryPath);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ private static string FormatResponse(ParseResult parseResult, global::Pruna.Pred

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"get-prediction-status", @"Get prediction status and result metadata.");
var command = new Command(commandName ?? @"get-prediction-status", @"Get prediction status and result metadata.");
command.Arguments.Add(Id);


Expand Down
4 changes: 2 additions & 2 deletions src/cli/Pruna.CLI/Commands/UploadFileCommandApiCommand.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ private static string FormatResponse(ParseResult parseResult, global::Pruna.File

static partial void CustomizeCommand(ref Command command);

public static Command Create()
public static Command Create(string? commandName = null)
{
var command = new Command(@"upload-file", @"Upload a file for prediction inputs.");
var command = new Command(commandName ?? @"upload-file", @"Upload a file for prediction inputs.");
command.Options.Add(Content);
command.Options.Add(Contentname);

Expand Down
Loading