/// <inheritdoc />
        public override IEnumerable <string> GetValues(IInputArguments input)
        {
            this.AssertInput(input);

            return(InvariantSets.FromValue(
                       this.GetPathExists(input.GetPositionalSegment())
                       ));
        }
Exemple #2
0
        /// <inheritdoc />
        public override IEnumerable <string> GetValues(IInputArguments input)
        {
            this.AssertInput(input);

            string?path = this.GetAbsolutePath(input.GetPositionalSegment());

            return(path != null
                ? InvariantSets.FromValue(path)
                : InvariantSets.Empty);
        }
        /// <inheritdoc />
        public override IEnumerable <string> GetValues(IInputArguments input)
        {
            this.AssertInput(input);

            string?path = input.GetPositionalSegment();

            return(!string.IsNullOrWhiteSpace(path)
                ? InvariantSets.FromValue(this.GetInternalAssetKey(path).Name)
                : InvariantSets.Empty);
        }
Exemple #4
0
        /// <inheritdoc />
        public override IEnumerable <string> GetValues(IInputArguments input)
        {
            this.AssertInput(input);

            string?path = input.GetPositionalSegment();

            if (!string.IsNullOrWhiteSpace(path))
            {
                path = PathUtilities.NormalizeAssetName(path);

                if (input.NamedArgs.TryGetValue("separator", out IInputArgumentValue? separator))
                {
                    path = path.Replace(PathUtilities.PreferredAssetSeparator.ToString(), separator.Parsed.FirstOrDefault());
                }

                return(InvariantSets.FromValue(path));
            }

            return(InvariantSets.Empty);
        }
Exemple #5
0
        /// <inheritdoc />
        public override IEnumerable <string> GetValues(IInputArguments input)
        {
            this.AssertInput(input);

            yield return(this.GetPathExists(input.GetPositionalSegment()).ToString());
        }