19 lines
546 B
C#
19 lines
546 B
C#
using System.CommandLine;
|
|
using MycroForge.CLI.Commands.Attributes;
|
|
using MycroForge.Core.Contract;
|
|
|
|
namespace MycroForge.CLI.Commands;
|
|
|
|
public partial class MycroForge
|
|
{
|
|
[RequiresFeature(Features.Db.FeatureName)]
|
|
public partial class Db : Command, ISubCommandOf<MycroForge>
|
|
{
|
|
public Db(IEnumerable<ISubCommandOf<Db>> commands)
|
|
: base("db", "Database related commands")
|
|
{
|
|
foreach (var command in commands.Cast<Command>())
|
|
AddCommand(command);
|
|
}
|
|
}
|
|
} |