Skip to content

Commit

Permalink
moved to pkg for other projects to use
Browse files Browse the repository at this point in the history
  • Loading branch information
Benbentwo committed Jun 15, 2020
1 parent 91a92cb commit 22707ed
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ Push markdown files to Confluence Cloud

## Installation

Download the [latest release](https://github.com/justmiles/go-markdown2confluence/releases) and add the binary in your local `PATH`
Download the [latest release](https://github.com/Benbentwo/go-markdown2confluence/releases) and add the binary in your local `PATH`

- Linux

curl -LO https://github.com/justmiles/go-markdown2confluence/releases/download/v3.1.1/go-markdown2confluence_3.1.1_linux_x86_64.tar.gz
curl -LO https://github.com/Benbentwo/go-markdown2confluence/releases/download/v3.1.1/go-markdown2confluence_3.1.1_linux_x86_64.tar.gz
sudo tar -xzvf go-markdown2confluence_3.1.1_linux_x86_64.tar.gz -C /usr/local/bin/ markdown2confluence

- OSX

curl -LO https://github.com/justmiles/go-markdown2confluence/releases/download/v3.1.1/go-markdown2confluence_3.1.1_darwin_x86_64.tar.gz
curl -LO https://github.com/Benbentwo/go-markdown2confluence/releases/download/v3.1.1/go-markdown2confluence_3.1.1_darwin_x86_64.tar.gz
sudo tar -xzvf go-markdown2confluence_3.1.1_darwin_x86_64.tar.gz -C /usr/local/bin/ markdown2confluence

- Windows
- Download [the latest release](https://github.com/justmiles/go-markdown2confluence/releases/download/v3.1.1/go-markdown2confluence_3.1.1_windows_x86_64.tar.gz) and add to your system `PATH`
- Download [the latest release](https://github.com/Benbentwo/go-markdown2confluence/releases/download/v3.1.1/go-markdown2confluence_3.1.1_windows_x86_64.tar.gz) and add to your system `PATH`

## Environment Variables
For best practice we recommend you [authenticate using an API token](https://id.atlassian.com/manage/api-tokens).
Expand Down
6 changes: 3 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"log"
"os"

lib "github.com/justmiles/go-markdown2confluence/lib"
"github.com/Benbentwo/go-markdown2confluence/pkg"

"github.com/spf13/cobra"
)

var m lib.Markdown2Confluence
var m pkg.Markdown2Confluence

func init() {
log.SetFlags(0)
Expand All @@ -19,7 +19,7 @@ func init() {
rootCmd.PersistentFlags().StringVarP(&m.Space, "space", "s", "", "Space in which page should be created")
rootCmd.PersistentFlags().StringVarP(&m.Username, "username", "u", "", "Confluence username. (Alternatively set CONFLUENCE_USERNAME environment variable)")
rootCmd.PersistentFlags().StringVarP(&m.Password, "password", "p", "", "Confluence password. (Alternatively set CONFLUENCE_PASSWORD environment variable)")
rootCmd.PersistentFlags().StringVarP(&m.Endpoint, "endpoint", "e", lib.DefaultEndpoint, "Confluence endpoint. (Alternatively set CONFLUENCE_ENDPOINT environment variable)")
rootCmd.PersistentFlags().StringVarP(&m.Endpoint, "endpoint", "e", pkg.DefaultEndpoint, "Confluence endpoint. (Alternatively set CONFLUENCE_ENDPOINT environment variable)")
rootCmd.PersistentFlags().StringVar(&m.Parent, "parent", "", "Optional parent page to next content under")
rootCmd.PersistentFlags().BoolVarP(&m.Debug, "debug", "d", false, "Enable debug logging")
rootCmd.PersistentFlags().IntVarP(&m.Since, "modified-since", "m", 0, "Only upload files that have modifed in the past n minutes")
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/justmiles/go-markdown2confluence
module github.com/Benbentwo/go-markdown2confluence

go 1.12

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/justmiles/go-markdown2confluence/cmd"
"github.com/Benbentwo/go-markdown2confluence/cmd"
)

// version of markdown2confluence. Overwritten during build
Expand Down
2 changes: 1 addition & 1 deletion lib/extension/main.go → pkg/extension/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/yuin/goldmark/renderer"
"github.com/yuin/goldmark/util"

r "github.com/justmiles/go-markdown2confluence/lib/renderer"
r "github.com/Benbentwo/go-markdown2confluence/pkg/renderer"
)

// Confluence is a Goldmark extension that renders markdown content compatable with Confluence
Expand Down
2 changes: 1 addition & 1 deletion lib/file.go → pkg/file.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lib
package pkg

import (
"fmt"
Expand Down
4 changes: 2 additions & 2 deletions lib/markdown.go → pkg/markdown.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lib
package pkg

import (
"bytes"
Expand All @@ -15,7 +15,7 @@ import (
"github.com/yuin/goldmark/parser"
"github.com/yuin/goldmark/renderer/html"

e "github.com/justmiles/go-markdown2confluence/lib/extension"
e "github.com/Benbentwo/go-markdown2confluence/pkg/extension"
)

const (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 22707ed

Please sign in to comment.