Skip to content

Implement croco sync command in dry mode #12

@chshersh

Description

@chshersh

It should go in the Croco.Command.Sync module. And this should do the following:

  1. Take user name, repo name with templates, file name, list of repositories to update.
  2. This function should download the template file.
  3. Then it should commit an updated file to all repos.

Since this command is a bit dangerous, this issue is only about dry implementation of this function. This means, that it should only print to terminal (ideally in a pretty way) a list of repositories which will be updated. Ideally I expect pretty colourful output in the following way:

FILE_NAME
user/repo1:     <Blue>Up-to-date</blue>
user/repo-long: <red>Doesn't have file</red>
user/repo-2:    <yellow>Outdated</yellow>

Where <color></color> is my pseudocode for colors. See the following for example of using colors:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions