Skip to content

Commit

Permalink
chore(imports): reorganize imports and fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
depado committed Sep 17, 2023
1 parent b4ea3d0 commit 02c938a
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 11 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<h2 align="center">
<img src="/assets/mascot.png" alt="mascot" height="200px">

[![forthebadge](https://forthebadge.com/images/badges/made-with-go.svg)](https://forthebadge.com)[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)[![forthebadge](https://forthebadge.com/images/badges/uses-badges.svg)](https://forthebadge.com)

![Go Version](https://img.shields.io/badge/Go%20Version-latest-brightgreen.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/Depado/quokka)](https://goreportcard.com/report/github.com/Depado/quokka)
[![Build Status](https://drone.depado.eu/api/badges/Depado/quokka/status.svg)](https://drone.depado.eu/Depado/quokka)
Expand Down Expand Up @@ -38,7 +36,6 @@
- [Standard `.quokka.yml` files](#standard-quokkayml-files)
- [Per-file configuration](#per-file-configuration)
- [Conditional Rendering/Copy](#conditional-renderingcopy)
<!-- - [After render commands](#after-render-commands) -->

# Introduction

Expand All @@ -49,7 +46,8 @@ new project. You can create templates for literally anything you want!
## Example Usages

- Generating your CI/CD configuration file
-
- Generating skeleton applications with your own best practices
- More

## Features

Expand Down Expand Up @@ -437,3 +435,9 @@ workspace:
This file will be rendered if, and only if, the user answered yes to that
question. Note that `if` and `copy` can work together if you just want
to copy the file and not render it.

## Todo

- Per-file config:
- [ ] Allow more complex conditional rendering
- [ ] Ability to rename files once rendered
3 changes: 2 additions & 1 deletion conf/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import (
"reflect"
"testing"

"github.com/Depado/quokka/utils"
"github.com/stretchr/testify/assert"

"github.com/Depado/quokka/utils"
)

func captureOutput(f func()) string {
Expand Down
3 changes: 2 additions & 1 deletion conf/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ import (
"text/template"
"unicode"

"github.com/Depado/quokka/utils"
"github.com/fatih/color"
"golang.org/x/text/cases"
"golang.org/x/text/language"
"gopkg.in/yaml.v2"

"github.com/Depado/quokka/utils"
)

const frontMatterPrefix = "---"
Expand Down
3 changes: 2 additions & 1 deletion conf/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"path/filepath"
"strings"

"github.com/Depado/quokka/utils"
yaml "gopkg.in/yaml.v2"

"github.com/Depado/quokka/utils"
)

// Root is a ConfigFile with extra information. It should be located at the root
Expand Down
3 changes: 2 additions & 1 deletion conf/variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package conf
import (
"fmt"

"github.com/Depado/quokka/utils"
"github.com/fatih/color"
survey "gopkg.in/AlecAivazis/survey.v1"
yaml "gopkg.in/yaml.v2"

"github.com/Depado/quokka/utils"
)

// Variables is a slice of pointer to a single variable
Expand Down
3 changes: 2 additions & 1 deletion provider/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package provider
import (
"path/filepath"

"github.com/Depado/quokka/utils"
git "gopkg.in/src-d/go-git.v4"

"github.com/Depado/quokka/utils"
)

type gitp struct {
Expand Down
3 changes: 2 additions & 1 deletion renderer/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"os"
"path/filepath"

"github.com/fatih/color"

"github.com/Depado/quokka/conf"
"github.com/Depado/quokka/utils"
"github.com/fatih/color"
)

// ConfigName is the generic name of the file that acts at the configuration
Expand Down
3 changes: 2 additions & 1 deletion renderer/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package renderer
import (
"os"

"gopkg.in/AlecAivazis/survey.v1"

"github.com/Depado/quokka/provider"
"github.com/Depado/quokka/utils"
"gopkg.in/AlecAivazis/survey.v1"
)

// Render is the main render function
Expand Down

0 comments on commit 02c938a

Please sign in to comment.