﻿// Copyright (c) Narvalo.Org. All rights reserved. See LICENSE.txt in the project root for license information.

namespace Quaderno
{
    using System;
    using System.ComponentModel.Composition;

    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public sealed class CommandMetadataAttribute : Attribute, ICommandMetadata
    {
        public CommandMetadataAttribute(CommandChoice choice)
        {
            Choice = choice;
        }

        public CommandChoice Choice { get; }
    }
}
