Skip to content

Commit d6e068a

Browse files
[Nitro CLI] Hide Subgraph options (#9173)
1 parent eb20f1a commit d6e068a

File tree

5 files changed

+23
-37
lines changed

5 files changed

+23
-37
lines changed

src/Nitro/CommandLine/src/CommandLine/Commands/Schemas/UploadSchemaCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async Task UploadSchema(StatusContext? ctx)
6262

6363
var input = new UploadSchemaInput
6464
{
65-
Schema = new Upload(stream, "operations.graphql"),
65+
Schema = new Upload(stream, "schema.graphqls"),
6666
ApiId = apiId,
6767
Tag = tag
6868
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace ChilliCream.Nitro.CommandLine.Options;
2+
3+
internal sealed class OptionalSubgraphIdOption : Option<string>
4+
{
5+
public OptionalSubgraphIdOption() : base("--subgraph-id", "The id of the subgraph")
6+
{
7+
IsRequired = false;
8+
IsHidden = true;
9+
this.DefaultFromEnvironmentValue("SUBGRAPH_ID");
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace ChilliCream.Nitro.CommandLine.Options;
2+
3+
internal sealed class OptionalSubgraphNameOption : Option<string>
4+
{
5+
public OptionalSubgraphNameOption() : base("--subgraph-name", "The name of the subgraph")
6+
{
7+
IsRequired = false;
8+
IsHidden = true;
9+
this.DefaultFromEnvironmentValue("SUBGRAPH_NAME");
10+
}
11+
}

src/Nitro/CommandLine/src/CommandLine/Options/SubgraphIdOption.cs

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/Nitro/CommandLine/src/CommandLine/Options/SubgraphName.cs

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)