Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
0.0.7 - List remote branches
Browse files Browse the repository at this point in the history
  • Loading branch information
guneysus committed Sep 18, 2024
1 parent d0e8247 commit f3cb5fe
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 19 deletions.
42 changes: 24 additions & 18 deletions src/GitJump.csproj
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<PackAsTool>true</PackAsTool>
<ToolCommandName>git-jump</ToolCommandName>
<PackageOutputPath>./nupkg</PackageOutputPath>
<Version>0.0.7</Version>
<PackageId>GitJump</PackageId>
<Authors>Ahmed Şeref Güneysu</Authors>
<Product>Git Jump</Product>
<AssemblyName>git-jump</AssemblyName>
<RootNamespace>GitJump</RootNamespace>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<PublishAot>true</PublishAot>
<TrimMode>partial</TrimMode>
<DebuggerSupport>false</DebuggerSupport>
<TrimmerRemoveSymbols>true</TrimmerRemoveSymbols>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<PackAsTool>true</PackAsTool>
<ToolCommandName>git-jump</ToolCommandName>
<PackageOutputPath>./nupkg</PackageOutputPath>
<Version>0.0.6</Version>
<PackageId>GitJump</PackageId>
<Authors>Ahmed Şeref Güneysu</Authors>
<Product>Git Jump</Product>
<AssemblyName>git-jump</AssemblyName>
<RootNamespace>GitJump</RootNamespace>
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CliWrap" Version="3.3.2" />
<PackageReference Include="Spectre.Console" Version="0.39.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CliWrap" Version="3.6.6" />
<PackageReference Include="Spectre.Console" Version="0.49.1" />
</ItemGroup>

</Project>
11 changes: 10 additions & 1 deletion src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@

var stdOutBuffer = new StringBuilder();

/*
git branch --list --all --no-color --format="%(refname:short)"
*/
_ = await Cli.Wrap("git")
.WithArguments("branch")
.WithArguments(new string[] {
"branch",
"--list",
"--all",
"--no-color",
"--format=\"%(refname:short)\""
}, false)
.WithStandardOutputPipe(PipeTarget.ToStringBuilder(stdOutBuffer))
.ExecuteAsync();

Expand Down

0 comments on commit f3cb5fe

Please sign in to comment.