Giter VIP home page Giter VIP logo

gittools's People

Contributors

kavics avatar

Watchers

 avatar  avatar

gittools's Issues

[EPIC] Components command

Create a command for querying emitted and referenced nuget packages to make it easier to detect incompatible items.

Components group by

Select by a param

By project

  • Project & path
    • Component

By component

  • Component
    • Version
      • Project & path

Referenced components

Lists every referenced nuget packages from the following sources

  • packages.config.
  • project files in case of a .net standard project.

Parameters:

  • -R, -Ref, -Refs, -References (required)
  • -ns "sensenet": namespace filter (startswith only)
  • -diff: packages that are emitted and referenced but the versions are different.

Configure command

Command formats:

  • GitT.exe Configure [-?...]
  • GitT.exe Configure gitexe <path>
  • GitT.exe Configure nugetinternal <path>
  • GitT.exe Configure nugetprivate <path>

The command can write the file that the tool will open next time.

Cleanup Command

1 - Checkout main (what branch is the main?)
2 - Get unused branches ("remote prune origin")
3 - Delete unused branches ("branch -D xxx").

Delete:

  • Do not delete branches if there are any uncommitted/unpushed items.

IndexOutOfRangeException when executing the status command.

This is what I got when I tried to execute the status command.

d:\Dev\github>gitt.exe status
REPOSITORIES
Repository                              Current branch                Status                   Modified/Last Fetch
======================================= ============================= ======================== ===================
GitTools                                develop                                                6 minutes ago
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at GitT.Commands.StatusCommand.ParseStatus(RepositoryInfo repo, String gitOut) in D:\Dev\github\GitTools\src\GitT\Commands\StatusCommand.cs:line 101
   at GitT.Commands.StatusCommand.<>c__DisplayClass17_0.<CurrentBranch2>b__0(String r) in D:\Dev\github\GitTools\src\GitT\Commands\StatusCommand.cs:line 80
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at GitT.Commands.StatusCommand.CurrentBranch2(String path, Boolean fetch) in D:\Dev\github\GitTools\src\GitT\Commands\StatusCommand.cs:line 85
   at GitT.Commands.StatusCommand.Execute() in D:\Dev\github\GitTools\src\GitT\Commands\StatusCommand.cs:line 34
   at GitT.Program.Run(String githubContainer, String[] args) in D:\Dev\github\GitTools\src\GitT\Program.cs:line 53

Possible causes

  • the GitTools repo is readonly to me
  • the next folder (not in the log above) is not a repository, just a random folder

Default command

Make the default command (parameterless exe name).
Let "status" be the default command.
> gitt ---> > gitt status

Project structure

Create a directory for each command and separate source files into these.

More Component versions

The Components command can use more different package sources to compare versions. Additional package sources are (configured in the appSettings.

  • Configuration for internal and private slots.
  • -I: (internal): internal corporate-wide nuget repository.
  • -P: (private): private repository on the developers machine or in a private network.

Emitted Components

Parameterless command that can list every emitted nuget package. Expected columns: PackageId, Version

[UI] Narrow column

The first column of the Info table is too narrow. Add 8-10 character to it.

Write configured path

Write the configured path if the configure command is parameterless.

> gitt configure

Command suffix

The name of a Command class can contain "Command" suffix.

  • Rename all commands with the "Command" suffix.

Component versions

The Components command can use different package sources to compare versions:

  • default: only local versions in the github repositories.
  • -N: (nuget): published version on the nuget.org.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.