Giter Site home page Giter Site logo

confluence-client's Introduction

Build Status

confluence-client

Targets

Build

The following command will build the golang binary and run the unit tests. The result of this build step is the standalone binary in the ./build/ folder.

make build

Example Output:

  go build -o build/confluence-cli cmd/confluence-cli.go
  go test -v --cover ./...
  ?   	github.com/fr123k/confluence-client/cmd	[no test files]
  ?   	github.com/fr123k/confluence-client/pkg/cmd	[no test files]
  ?   	github.com/fr123k/confluence-client/pkg/config	[no test files]
  ?   	github.com/fr123k/confluence-client/pkg/confluence	[no test files]

Run

The following make target will first build and then execute the golang binary.

  make run

Example Output:

  go build -o build/confluence-cli cmd/confluence-cli.go
  go test -v --cover ./...
  ?   	github.com/fr123k/confluence-client/cmd	[no test files]
  ?   	github.com/fr123k/confluence-client/pkg/cmd	[no test files]
  ?   	github.com/fr123k/confluence-client/pkg/config	[no test files]
  ?   	github.com/fr123k/confluence-client/pkg/confluence	[no test files]
  ./build/confluence-cli
  NAME:
    consluence-cli - A new cli application

  USAGE:
    confluence-cli [global options] command [command options] [arguments...]

  VERSION:
    0.0.1

  DESCRIPTION:
    A conflucnce cli application.

  AUTHOR:
    fr123k <[email protected]>

  COMMANDS:
    page     Create/Read/Update/Delete conflunece pages.
    label    Create/Read/Update/Delete conflunece labels.
    help, h  Shows a list of commands or help for one command

  GLOBAL OPTIONS:
    --confluence.url value, --url value            The root url of the confluence instance like ('https://examplecompany.atlassian.net/wiki') [$CONFLUENCE_URL]
    --confluence.username value, --username value  The confluence username for authentication. [$CONFLUENCE_USERNAME]
    --confluence.token value, --password value     The confluence user api-token or password for authentication. [$CONFLUENCE_PASSWORD]
    --debug, -d                                    This enables verbose logging. (default: false) [$CONFLUENCE_DEBUG, $DEBUG]
    --config-file FILE, -c FILE                    Load configuration from FILE (default: "config.yaml") [$CONFLUENCE_CLI_CONFIGFILE, $CONFIGFILE]
    --help, -h                                     show help (default: false)
    --version, -v                                  print the version (default: false)

Clean

The following make target will remove the ./build/ folder. No confirmation needed

  make clean

Example Output:

  rm -rfv ./build
  ./build/main
  ./build

Changelog

  • setup travis build
  • implement following commands page get, page search and label get

Todos

  • adding additional operations for page like update, delete, add label, remove label...
  • adding json export capabilities

confluence-client's People

Contributors

fr123k avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.