-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from perryrh0dan/dev
Dev
- Loading branch information
Showing
14 changed files
with
288 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
[package] | ||
name = "tmpo" | ||
description = "Command line utility to create new workspaces based on predefined templates" | ||
version = "1.8.2" | ||
authors = ["Thomas Pöhlmann <[email protected]>"] | ||
edition = "2018" | ||
license = "MIT" | ||
|
||
[dependencies] | ||
clap = { git = "https://github.com/clap-rs/clap/" } | ||
clap = { version = "3.0.0-beta.2" } | ||
serde = { version = "1.0.104", features = ["derive"] } | ||
serde_json = "1.0.48" | ||
serde_yaml = "0.8.13" | ||
|
@@ -18,10 +20,10 @@ dialoguer = "0.6.2" | |
tempfile = "3.1.0" | ||
flate2 = "1.0.17" | ||
tar = "0.4.29" | ||
handlebars = "3.4.0" | ||
handlebars = "3.5.0" | ||
regex = "1.3.9" | ||
url = "2.1.1" | ||
base64 = "0.12.3" | ||
base64 = "0.13.0" | ||
|
||
[dependencies.reqwest] | ||
version = "0.10.8" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,7 @@ | |
<a href="https://travis-ci.com/perryrh0dan/tmpo"> | ||
<img alt="Build Status" src="https://travis-ci.com/perryrh0dan/tmpo.svg?branch=master" /> | ||
</a> | ||
<a href="https://codecov.io/gh/perryrh0dan/tmpo"> | ||
<img src="https://codecov.io/gh/perryrh0dan/tmpo/branch/master/graph/badge.svg" /> | ||
</a> | ||
<img src="https://img.shields.io/badge/coverage-64%2C5%25-yellow" /> | ||
<a href="https://codeclimate.com/github/perryrh0dan/tmpo/maintainability"> | ||
<img src="https://api.codeclimate.com/v1/badges/83561b59422e2492f9db/maintainability" /> | ||
</a> | ||
|
@@ -27,7 +25,7 @@ | |
|
||
## Description | ||
|
||
Tmpo enables you to effectively create new workspaces based on predefined templates. To share templates across your team tmpo is using a git repository to manage your templates. Templates are automaticly fetched and merged on all clients. | ||
Tmpo enables you to effectively create new workspaces based on predefined templates. To share templates across your team tmpo is using a git repository to manage your templates. Templates are automaticly fetched and merged on all clients. | ||
|
||
<div align="center"> | ||
<img alt="diagram" width="100%" src="./media/diagram.png"/> | ||
|
@@ -38,11 +36,12 @@ Visit the [contributing guidelines](https://github.com/perryrh0dan/tmpo/blob/mas | |
Come over to [Gitter](https://gitter.im/perryrh0dantmpo/community?source=orgpage) or [Twitter](https://twitter.com/perryrh0dan1) to share your thoughts on the project. | ||
|
||
## Highlights | ||
|
||
- Setup complex workspaces in seconds | ||
- Templates support inheritence and placeholders | ||
- Simple, Lightweight & fast | ||
- Cross-platform: Linux, Windows and mac are official supported | ||
- Everything can be a template. Python, Rust, Typescript, latex, markdown,... | ||
- Everything can be a template. Python, Rust, Typescript, latex, markdown,... | ||
- Share templates across your team or community with git | ||
- Configurable through `~/.tmpo/config.yaml` | ||
- Self Updater | ||
|
@@ -78,18 +77,20 @@ A detailed description can be found [here](https://github.com/perryrh0dan/tmpo/b | |
### Quick Start | ||
|
||
1. Add a [repository](#repositories) or use the [default repository](https://github.com/perryrh0dan/templates) | ||
``` bash | ||
|
||
```bash | ||
tmpo repository add | ||
``` | ||
|
||
2. Setup your first project | ||
``` bash | ||
|
||
```bash | ||
tmpo init | ||
``` | ||
|
||
### CLI | ||
|
||
``` | ||
``` | ||
tmpo 1.5.3 | ||
Thomas P. <[email protected]> | ||
Cli to create new workspaces based on templates | ||
|
@@ -116,36 +117,37 @@ A repository is a folder that contains up to n different templates. A repository | |
|
||
To add a new repository use the `repository subcommand` and follow the instructions on the screen. | ||
|
||
``` bash | ||
```bash | ||
tmpo repository add | ||
``` | ||
|
||
### Templates | ||
|
||
Templates can be configured with a `meta.json` in the template root. | ||
Templates can be configured with a `meta.json` in the template root. | ||
For a detailed description how to create and maintain templates have a look at the instructions in the default template repository [repository](https://github.com/perryrh0dan/templates) | ||
|
||
## Configuration | ||
|
||
The configuration file should only be changed by experienced users. | ||
|
||
To configure tmpo navigate to the ~/.tmpo/config.yaml file and modify any of the options to match your own preference. To reset back to the default values, simply delete the config file from your home directory. | ||
|
||
The following illustrates all the available options with their respective default values. | ||
|
||
``` yaml | ||
templates_dir: /home/thomas/.tmpo/templates | ||
templates_repositories: | ||
- name: default | ||
description: this is the default template repository from tpoe | ||
git_options: | ||
enabled: true | ||
provider: github | ||
url: "https://github.com/perryrh0dan/templates" | ||
branch: master | ||
auth: none | ||
token: | ||
username: ~ | ||
password: ~ | ||
```yaml | ||
templates_dir: /home/thomas/.tmpo/templates | ||
templates_repositories: | ||
- name: default | ||
description: this is the default template repository from tpoe | ||
git_options: | ||
enabled: true | ||
provider: github | ||
url: "https://github.com/perryrh0dan/templates" | ||
branch: master | ||
auth: none | ||
token: | ||
username: ~ | ||
password: ~ | ||
``` | ||
## Development | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# This script can be used for manual building tmpo | ||
|
||
echo "Build x86_64-unknown-linux-gnu" | ||
cross build --release --target x86_64-unknown-linux-gnu | ||
|
||
echo "Build x86_64-pc-windows-gnu" | ||
cross build --release --target x86_64-pc-windows-gnu | ||
cross build --release --target x86_64-pc-windows-gnu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# This script can be used for generating a coverage report | ||
|
||
rustup default nightly | ||
|
||
export CARGO_INCREMENTAL=0 | ||
export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort" | ||
export RUSTDOCFLAGS="-Cpanic=abort" | ||
|
||
cargo build | ||
|
||
cargo test | ||
|
||
grcov ./target/debug/ -s . -t html --llvm --branch --ignore-not-existing -o ./target/debug/coverage/ | ||
|
||
rustup default stable |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.