Skip to content
Open
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 @@ -23,6 +23,8 @@ public partial class DeploymentPlanArgs : Beamable.Common.BeamCli.IBeamCommandAr
public bool buildSequentially;
/// <summary>Maximum number of parallel services builds</summary>
public int maxParallelCount;
/// <summary>Maximum number of concurrent service image uploads during deployment</summary>
public int maxConcurrentUploads;
/// <summary>Create a Release that merges your current local environment to the existing remote services. Existing deployed services will not be removed</summary>
public bool merge;
/// <summary>Create a Release that completely overrides the existing remote services. Existing deployed services that are not present locally will be removed (default)</summary>
Expand Down Expand Up @@ -82,6 +84,11 @@ public virtual string Serialize()
{
genBeamCommandArgs.Add(("--max-parallel-count=" + this.maxParallelCount));
}
// If the maxConcurrentUploads value was not default, then add it to the list of args.
if ((this.maxConcurrentUploads != default(int)))
{
genBeamCommandArgs.Add(("--max-concurrent-uploads=" + this.maxConcurrentUploads));
}
// If the merge value was not default, then add it to the list of args.
if ((this.merge != default(bool)))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public partial class DeploymentReleaseArgs : Beamable.Common.BeamCli.IBeamComman
public bool buildSequentially;
/// <summary>Maximum number of parallel services builds</summary>
public int maxParallelCount;
/// <summary>Maximum number of concurrent service image uploads during deployment</summary>
public int maxConcurrentUploads;
/// <summary>Create a Release that merges your current local environment to the existing remote services. Existing deployed services will not be removed</summary>
public bool merge;
/// <summary>Create a Release that completely overrides the existing remote services. Existing deployed services that are not present locally will be removed (default)</summary>
Expand Down Expand Up @@ -82,6 +84,11 @@ public virtual string Serialize()
{
genBeamCommandArgs.Add(("--max-parallel-count=" + this.maxParallelCount));
}
// If the maxConcurrentUploads value was not default, then add it to the list of args.
if ((this.maxConcurrentUploads != default(int)))
{
genBeamCommandArgs.Add(("--max-concurrent-uploads=" + this.maxConcurrentUploads));
}
// If the merge value was not default, then add it to the list of args.
if ((this.merge != default(bool)))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public partial class InitArgs : Beamable.Common.BeamCli.IBeamCommandArgs
public bool realmScoped;
/// <summary>Prints out login request response to console</summary>
public bool printToConsole;
/// <summary>INTERNAL Generate an AGENTS.md AI-agent guide for this workspace</summary>
public bool generateAgentsFile;
/// <summary>Serializes the arguments for command line usage.</summary>
public virtual string Serialize()
{
Expand Down Expand Up @@ -110,6 +112,11 @@ public virtual string Serialize()
{
genBeamCommandArgs.Add(("--print-to-console=" + this.printToConsole));
}
// If the generateAgentsFile value was not default, then add it to the list of args.
if ((this.generateAgentsFile != default(bool)))
{
genBeamCommandArgs.Add(("--generate-agents-file=" + this.generateAgentsFile));
}
string genBeamCommandStr = "";
// Join all the args with spaces
genBeamCommandStr = string.Join(" ", genBeamCommandArgs);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@

namespace Beamable.Editor.BeamCli.Commands
{
using Beamable.Common;
using Beamable.Common.BeamCli;

public partial class PortalExtensionAddLibraryArgs : Beamable.Common.BeamCli.IBeamCommandArgs
{
/// <summary>The shared library that will be a new dependency of the specified Portal Extensions</summary>
public string library;
/// <summary>The list of Portal Extension names that the library will be added to (separated by whitespace)</summary>
public string[] extensions;
/// <summary>Serializes the arguments for command line usage.</summary>
public virtual string Serialize()
{
// Create a list of arguments for the command
System.Collections.Generic.List<string> genBeamCommandArgs = new System.Collections.Generic.List<string>();
// Add the library value to the list of args.
genBeamCommandArgs.Add(this.library.ToString());
// If the extensions value was not default, then add it to the list of args.
if ((this.extensions != default(string[])))
{
for (int i = 0; (i < this.extensions.Length); i = (i + 1))
{
// The parameter allows multiple values
genBeamCommandArgs.Add(("--extensions=" + this.extensions[i]));
}
}
string genBeamCommandStr = "";
// Join all the args with spaces
genBeamCommandStr = string.Join(" ", genBeamCommandArgs);
return genBeamCommandStr;
}
}
public partial class BeamCommands
{
public virtual PortalExtensionAddLibraryWrapper PortalExtensionAddLibrary(PortalExtensionAddLibraryArgs addLibraryArgs)
{
// Create a list of arguments for the command
System.Collections.Generic.List<string> genBeamCommandArgs = new System.Collections.Generic.List<string>();
genBeamCommandArgs.Add("beam");
genBeamCommandArgs.Add(defaultBeamArgs.Serialize());
genBeamCommandArgs.Add("portal");
genBeamCommandArgs.Add("extension");
genBeamCommandArgs.Add("add-library");
genBeamCommandArgs.Add(addLibraryArgs.Serialize());
// Create an instance of an IBeamCommand
Beamable.Common.BeamCli.IBeamCommand command = this._factory.Create();
// Join all the command paths and args into one string
string genBeamCommandStr = string.Join(" ", genBeamCommandArgs);
// Configure the command with the command string
command.SetCommand(genBeamCommandStr);
PortalExtensionAddLibraryWrapper genBeamCommandWrapper = new PortalExtensionAddLibraryWrapper();
genBeamCommandWrapper.Command = command;
// Return the command!
return genBeamCommandWrapper;
}
}
public partial class PortalExtensionAddLibraryWrapper : Beamable.Common.BeamCli.BeamCommandWrapper
{
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@

namespace Beamable.Editor.BeamCli.Commands
{
using Beamable.Common;
using Beamable.Common.BeamCli;

public partial class PortalExtensionUpdateToolkitArgs : Beamable.Common.BeamCli.IBeamCommandArgs
{
/// <summary>The @beamable/portal-toolkit version to update to; must exist in the npm registry or in verdaccio</summary>
public string version;
/// <summary>Update to the version currently published locally in verdaccio</summary>
public bool local;
/// <summary>The verdaccio registry URL used for --local and for version existence checks</summary>
public string registry;
/// <summary>Serializes the arguments for command line usage.</summary>
public virtual string Serialize()
{
// Create a list of arguments for the command
System.Collections.Generic.List<string> genBeamCommandArgs = new System.Collections.Generic.List<string>();
// If the version value was not default, then add it to the list of args.
if ((this.version != default(string)))
{
genBeamCommandArgs.Add(("--version=" + this.version));
}
// If the local value was not default, then add it to the list of args.
if ((this.local != default(bool)))
{
genBeamCommandArgs.Add(("--local=" + this.local));
}
// If the registry value was not default, then add it to the list of args.
if ((this.registry != default(string)))
{
genBeamCommandArgs.Add(("--registry=" + this.registry));
}
string genBeamCommandStr = "";
// Join all the args with spaces
genBeamCommandStr = string.Join(" ", genBeamCommandArgs);
return genBeamCommandStr;
}
}
public partial class BeamCommands
{
public virtual PortalExtensionUpdateToolkitWrapper PortalExtensionUpdateToolkit(PortalExtensionUpdateToolkitArgs updateToolkitArgs)
{
// Create a list of arguments for the command
System.Collections.Generic.List<string> genBeamCommandArgs = new System.Collections.Generic.List<string>();
genBeamCommandArgs.Add("beam");
genBeamCommandArgs.Add(defaultBeamArgs.Serialize());
genBeamCommandArgs.Add("portal");
genBeamCommandArgs.Add("extension");
genBeamCommandArgs.Add("update-toolkit");
genBeamCommandArgs.Add(updateToolkitArgs.Serialize());
// Create an instance of an IBeamCommand
Beamable.Common.BeamCli.IBeamCommand command = this._factory.Create();
// Join all the command paths and args into one string
string genBeamCommandStr = string.Join(" ", genBeamCommandArgs);
// Configure the command with the command string
command.SetCommand(genBeamCommandStr);
PortalExtensionUpdateToolkitWrapper genBeamCommandWrapper = new PortalExtensionUpdateToolkitWrapper();
genBeamCommandWrapper.Command = command;
// Return the command!
return genBeamCommandWrapper;
}
}
public partial class PortalExtensionUpdateToolkitWrapper : Beamable.Common.BeamCli.BeamCommandWrapper
{
public virtual PortalExtensionUpdateToolkitWrapper OnStreamPortalExtensionUpdateToolkitCommandResults(System.Action<ReportDataPoint<BeamPortalExtensionUpdateToolkitCommandResults>> cb)
{
this.Command.On("stream", cb);
return this;
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

namespace Beamable.Editor.BeamCli.Commands
{
using Beamable.Common;
using Beamable.Common.BeamCli;

[System.SerializableAttribute()]
public partial class BeamPortalExtensionUpdateToolkitCommandResults
{
public string version;
public System.Collections.Generic.List<string> updated;
public System.Collections.Generic.List<string> skipped;
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public partial class ProjectNewPortalExtensionArgs : Beamable.Common.BeamCli.IBe
public string mountPage;
/// <summary>The mount slot on the page. Required for component extensions; omit for page extensions (auto-assigned). Run 'portal extension list-extension-options' to see valid selectors per page</summary>
public string mountSelector;
/// <summary>Specify the navigation group of the extension. This is only valid when the extension is a full page</summary>
/// <summary>Specify the navigation group of the extension, used to organize extensions within a hub. This is required when the extension is a full page</summary>
public string mountGroup;
/// <summary>Specify the navigation label of the extension. This is only valid when the extension is a full page</summary>
public string mountLabel;
Expand All @@ -26,8 +26,10 @@ public partial class ProjectNewPortalExtensionArgs : Beamable.Common.BeamCli.IBe
public int mountGroupOrder;
/// <summary>Specify the order of the mount label</summary>
public int mountLabelOrder;
/// <summary>UI framework template to scaffold the extension with. Allowed values: svelte, react</summary>
/// <summary>UI framework template to scaffold the extension with. Allowed values: react</summary>
public string template;
/// <summary>Conditional mount filters as key=value pairs (e.g. --filters account.role=developer|admin account.tier=default). Values are regex-matched by the portal against the viewer's context, so | alternation is valid; quote entries containing | so your shell doesn't interpret it. Merged over the template defaults, so unspecified keys keep their defaults</summary>
public string[] filters;
/// <summary>Serializes the arguments for command line usage.</summary>
public virtual string Serialize()
{
Expand Down Expand Up @@ -85,6 +87,15 @@ public virtual string Serialize()
{
genBeamCommandArgs.Add(("--template=" + this.template));
}
// If the filters value was not default, then add it to the list of args.
if ((this.filters != default(string[])))
{
for (int i = 0; (i < this.filters.Length); i = (i + 1))
{
// The parameter allows multiple values
genBeamCommandArgs.Add(("--filters=" + this.filters[i]));
}
}
string genBeamCommandStr = "";
// Join all the args with spaces
genBeamCommandStr = string.Join(" ", genBeamCommandArgs);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@

namespace Beamable.Editor.BeamCli.Commands
{
using Beamable.Common;
using Beamable.Common.BeamCli;

public partial class ProjectNewPortalExtensionLibArgs : Beamable.Common.BeamCli.IBeamCommandArgs
{
/// <summary>Name of the new project</summary>
public Beamable.Common.Semantics.ServiceName name;
/// <summary>Relative path to the .sln file to use for the new project. If the .sln file does not exist, it will be created. When no option is configured, if this command is executing inside a .beamable folder, then the first .sln found in .beamable/.. will be used. If no .sln is found, the .sln path will be <name>.sln. If no .beamable folder exists, then the <project>/<project>.sln will be used</summary>
public string sln;
/// <summary>Relative path to directory where project should be created. Defaults to "SOLUTION_DIR/services"</summary>
public string serviceDirectory;
/// <summary>Serializes the arguments for command line usage.</summary>
public virtual string Serialize()
{
// Create a list of arguments for the command
System.Collections.Generic.List<string> genBeamCommandArgs = new System.Collections.Generic.List<string>();
// Add the name value to the list of args.
genBeamCommandArgs.Add(this.name.ToString());
// If the sln value was not default, then add it to the list of args.
if ((this.sln != default(string)))
{
genBeamCommandArgs.Add(("--sln=" + this.sln));
}
// If the serviceDirectory value was not default, then add it to the list of args.
if ((this.serviceDirectory != default(string)))
{
genBeamCommandArgs.Add(("--service-directory=" + this.serviceDirectory));
}
string genBeamCommandStr = "";
// Join all the args with spaces
genBeamCommandStr = string.Join(" ", genBeamCommandArgs);
return genBeamCommandStr;
}
}
public partial class BeamCommands
{
public virtual ProjectNewPortalExtensionLibWrapper ProjectNewPortalExtensionLib(ProjectNewPortalExtensionLibArgs portalExtensionLibArgs)
{
// Create a list of arguments for the command
System.Collections.Generic.List<string> genBeamCommandArgs = new System.Collections.Generic.List<string>();
genBeamCommandArgs.Add("beam");
genBeamCommandArgs.Add(defaultBeamArgs.Serialize());
genBeamCommandArgs.Add("project");
genBeamCommandArgs.Add("new");
genBeamCommandArgs.Add("portal-extension-lib");
genBeamCommandArgs.Add(portalExtensionLibArgs.Serialize());
// Create an instance of an IBeamCommand
Beamable.Common.BeamCli.IBeamCommand command = this._factory.Create();
// Join all the command paths and args into one string
string genBeamCommandStr = string.Join(" ", genBeamCommandArgs);
// Configure the command with the command string
command.SetCommand(genBeamCommandStr);
ProjectNewPortalExtensionLibWrapper genBeamCommandWrapper = new ProjectNewPortalExtensionLibWrapper();
genBeamCommandWrapper.Command = command;
// Return the command!
return genBeamCommandWrapper;
}
}
public partial class ProjectNewPortalExtensionLibWrapper : Beamable.Common.BeamCli.BeamCommandWrapper
{
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

namespace Beamable.Editor.BeamCli.Commands
{
using Beamable.Common;
using Beamable.Common.BeamCli;

[System.SerializableAttribute()]
public partial class BeamRemotePortalExtensionDescriptor
{
public string name;
public bool enabled;
public bool archived;
public string[] dependencies;
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading