Skip to content

Commit

Permalink
support path input in parse
Browse files Browse the repository at this point in the history
  • Loading branch information
Hecate2 committed Sep 12, 2024
1 parent 9788280 commit 8fa2477
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Neo.CLI/CLI/MainService.Tools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Reflection;
Expand All @@ -33,6 +34,8 @@ partial class MainService
[ConsoleCommand("parse", Category = "Base Commands", Description = "Parse a value to its possible conversions.")]
private void OnParseCommand(string value)
{
if (File.Exists(value))
value = Convert.ToBase64String(File.ReadAllBytes(value));
value = Base64Fixed(value);

var parseFunctions = new Dictionary<string, Func<string, string?>>();
Expand Down

0 comments on commit 8fa2477

Please sign in to comment.