Esempio n. 1
0
        public virtual string GetRemoteCommand()
        {
            if (!HasRemoteCommand)
            {
                return(null);
            }

            return(string.IsNullOrEmpty(Filter?.RepositoryFilter)
                                ? null /* makes no sense */
                                : $"list:{RegexFilter.Get(Filter.RepositoryFilter)}");
        }
Esempio n. 2
0
 public string GetRemoteCommand() => string.IsNullOrEmpty(_repositoryFilter)
                 ? "list:.*" /* show all with RegEx pattern ".*" */
                 : $"list:{RegexFilter.Get(_repositoryFilter)}";