Skip to content

Semi-ATE/TTFG

Repository files navigation

TTFG

Tar archive To/From Github

GitHub Conda Supported Python versions Code style: black

CI codecov CD

GitHub release (latest SemVer) GitHub commits since latest release (by date) PyPI Conda (channel only) conda-forge feedstock

PyPI - Downloads Conda

GitHub issues GitHub pull requests

This repo implements two commands :

  • ttg : Tar archive To Github
  • tfg : Tar archive From Github

Basically a Github repo doesn't have owners and permissions. If we work on Github, and need this (for example when one manages the root file system of an embedded system), we need a way to extract/re-apply the owners and permissions of all the files. This is exactly what TTFG does.

ttg : Tar To Github

(maxiconda) me@mybox:~$ ttg -i fubar.tar -o /home/me/some/dir

Given a tar archive in the -i flag (can also be zipped, gzipped or xz) a YAML file with the same name as the tar archive (minus .tar.*) and the extension .ttfg in the directory specified by the -o flag. This file contains all files in the archive and their owners/permissions.

tfg : Tar From Github

(maxiconda) me@mybox:~$ tfg -i /some/github/repo -o fubar.tar.xz

Given the root directory of a Github repo (MUST contain a .git sub-directory and a .xxx.ttfg file) tfg will recuperate the owners and permissions form the .xxx.ttfg file, and apply them to the directory with the directory with name xxx. The result is a tar file with the name xxx.tar if no -o flag is given, or to the file given if the -o flag is given.

About

Tar archive To/From Github

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages