Create the refile package as tool.
This commit is contained in:
parent
868bc9a3cf
commit
75fe42a68d
@ -7,13 +7,13 @@ namespace ReMime.Cli
|
||||
{
|
||||
public static class Program
|
||||
{
|
||||
private const string USAGE = "remime [-r] file/directory/-...\n" +
|
||||
"remime --help for more help.";
|
||||
private const string USAGE = "refile [-r] file/directory/-...\n" +
|
||||
"refile --help for more help.";
|
||||
|
||||
private const string HELP =
|
||||
"ReMime Command Line Tool - Determine file Media Type\n" +
|
||||
"\n" +
|
||||
" remime [-r] file/directory/-...\n" +
|
||||
" refile [-r] file/directory/-...\n" +
|
||||
"\n" +
|
||||
" file infer a file\n"+
|
||||
" directory infer files in directory. Requires -r\n"+
|
||||
|
@ -1,17 +1,42 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ReMime\ReMime.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>disable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<SelfContained>true</SelfContained>
|
||||
<PublishSingleFile>true</PublishSingleFile>
|
||||
<AssemblyName>refile</AssemblyName>
|
||||
|
||||
<!--NuGet-->
|
||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||
<PackageId>ReFuel.ReMime.ReFile</PackageId>
|
||||
<Version>0.1.0</Version>
|
||||
<Authors>H. Utku Maden</Authors>
|
||||
<Company>ReFuel</Company>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
|
||||
<PackageIcon>images\icon.png</PackageIcon>
|
||||
<PackageProjectUrl>https://refuel.mixedup.dev/docs/ReMime.html</PackageProjectUrl>
|
||||
<RepositoryUrl>https://git.mixedup.dev/ReFuel/ReMime</RepositoryUrl>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PackageTags>detection; detector; type; file; mime; mime-type; media; media-type; analysis; tool; refile</PackageTags>
|
||||
<PackageDescription>
|
||||
ReMime is a very humble library that can identify IANA media types of file
|
||||
from their file extension and its content. While being fully extensible
|
||||
with your own resolvers, ReMime will also refer to your operating system's
|
||||
file type database when resolving files.
|
||||
|
||||
This is an example project a tool that will resolve the media types of the
|
||||
given list of files and directories.
|
||||
</PackageDescription>
|
||||
<PackageType>DotnetTool</PackageType>
|
||||
<PackAsTool>true</PackAsTool>
|
||||
<ToolCommandName>refile</ToolCommandName>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="ReFuel.ReMime" Version="0.1.0" />
|
||||
|
||||
<Content Include="../*.md" Pack="true" PackagePath="/" />
|
||||
<None Include="../remime_favicon.png" Pack="true" PackagePath="images\icon.png"/>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user