Skip to content

Commit

Permalink
[fix][cli] Remove defaultValue of tenant/namespace for CmdFunctions (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
coderzc authored May 23, 2024
1 parent 99bff72 commit 951eb51
Showing 1 changed file with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,10 @@ void processArguments() throws Exception {}
*/
@Getter
abstract class NamespaceCommand extends BaseCommand {
@Option(names = "--tenant", description = "The tenant of a Pulsar Function",
defaultValue = PUBLIC_TENANT)
@Option(names = "--tenant", description = "The tenant of a Pulsar Function")
protected String tenant;

@Option(names = "--namespace", description = "The namespace of a Pulsar Function",
defaultValue = DEFAULT_NAMESPACE)
@Option(names = "--namespace", description = "The namespace of a Pulsar Function")
protected String namespace;
}

Expand All @@ -117,12 +115,10 @@ abstract class FunctionCommand extends BaseCommand {
@Option(names = "--fqfn", description = "The Fully Qualified Function Name (FQFN) for the function")
protected String fqfn;

@Option(names = "--tenant", description = "The tenant of a Pulsar Function",
defaultValue = PUBLIC_TENANT)
@Option(names = "--tenant", description = "The tenant of a Pulsar Function")
protected String tenant;

@Option(names = "--namespace", description = "The namespace of a Pulsar Function",
defaultValue = DEFAULT_NAMESPACE)
@Option(names = "--namespace", description = "The namespace of a Pulsar Function")
protected String namespace;

@Option(names = "--name", description = "The name of a Pulsar Function")
Expand Down Expand Up @@ -170,11 +166,9 @@ abstract class FunctionDetailsCommand extends BaseCommand {
@Option(names = "--fqfn", description = "The Fully Qualified Function Name (FQFN) for the function"
+ " #Java, Python")
protected String fqfn;
@Option(names = "--tenant", description = "The tenant of a Pulsar Function #Java, Python, Go",
defaultValue = PUBLIC_TENANT)
@Option(names = "--tenant", description = "The tenant of a Pulsar Function #Java, Python, Go")
protected String tenant;
@Option(names = "--namespace", description = "The namespace of a Pulsar Function #Java, Python, Go",
defaultValue = DEFAULT_NAMESPACE)
@Option(names = "--namespace", description = "The namespace of a Pulsar Function #Java, Python, Go")
protected String namespace;
@Option(names = "--name", description = "The name of a Pulsar Function #Java, Python, Go")
protected String functionName;
Expand Down

0 comments on commit 951eb51

Please sign in to comment.