예제 #1
0
        static void Main(string[] args)
        {
            if (!args.Any())
            {
                throw new IOException("You need to define a path!");
            }

            var folderPath = args[0];
            var rootFolder = new FolderNode(folderPath);

            rootFolder.AnalyzeFiles();

            var allDependencies = FileHelper.DepsToFile;

            using StreamWriter sw = new StreamWriter(folderPath + Path.DirectorySeparatorChar + "dependencies.json");

            sw.Write(JsonConvert.SerializeObject(allDependencies, Formatting.Indented));
            sw.Close();
        }