public RemoveCommand(SeqConnectionFactory connectionFactory) { _connectionFactory = connectionFactory ?? throw new ArgumentNullException(nameof(connectionFactory)); _entityIdentity = Enable(new EntityIdentityFeature("API key", "remove")); _connection = Enable <ConnectionFeature>(); }
public ListCommand(SeqConnectionFactory connectionFactory, SeqCliConfig config) { if (config == null) { throw new ArgumentNullException(nameof(config)); } _connectionFactory = connectionFactory ?? throw new ArgumentNullException(nameof(connectionFactory)); _entityIdentity = Enable(new EntityIdentityFeature("signal", "list")); _output = Enable(new OutputFormatFeature(config.Output)); _connection = Enable <ConnectionFeature>(); }