コード例 #1
0
        public override async Task <int> OnExecute(CommandLineApplication app)
        {
            var response = await _spaceService.GetMySpaces();

            var layout = _layoutRepository.Get(Layout);

            layout.Output(response.MySpaces.Select(s => new
            {
                s.Space.Key,
                s.Space.Name
            }));
            return(0);
        }