예제 #1
0
파일: Commands.cs 프로젝트: bluemarsh/talys
        public override int Execute()
        {
            if (!TryParseCommonArgs(Store, out var flowContext))
            {
                return(1);
            }

            Console.WriteLine($"Fetching {Tables} to {flowContext.LocalStore.Location}");

            var flow = new FetchFlow(flowContext);

            return(flow.TryExecute() ? 0 : 1);
        }
예제 #2
0
        public bool TryExecute()
        {
            var fetchFlow = new FetchFlow(_context);

            if (!fetchFlow.TryExecute())
            {
                return(false);
            }

            var mergeFlow = new MergeFlow(_context);

            if (!mergeFlow.TryExecute())
            {
                return(false);
            }

            return(true);
        }