jarl

package module
v0.0.0-...-ebaef00 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

README

Jarl

License Version

Locate jar coordinates right from your terminal.

Jarl

No need to browse mvnrepository.com.

Installation

OSX
  • Homebrew
    $ brew install devcsrj/homebrew-tap/jarl
    
Windows
  • Scoop
    $ scoop bucket add devcsrj https://github.com/devcsrj/scoop-bucket
    $ scoop install jarl
    
Linux
  • rpm and deb binaries are available at releases

FAQ

Jarl?

Yup.

Documentation

Overview

Copyright © 2019 Reijhanniel Jearl Campos <devcsrj@apache.org>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright © 2019 Reijhanniel Jearl Campos <devcsrj@apache.org>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Group       string
	Id          string
	Description string
}

type ArtifactApi

type ArtifactApi interface {
	// Queries for artifacts using the provided query 'q'
	SearchArtifacts(q string, page int) SearchResults

	// Queries the details of the provided group and id
	GetArtifactDetails(group string, id string) Details
}

Interface for querying maven artifacts

type BuildrImportStyle

type BuildrImportStyle struct{}

https://buildr.apache.org

func (BuildrImportStyle) Apply

func (b BuildrImportStyle) Apply(artifact Artifact, version Version) string

type Details

type Details struct {
	License      string
	Repositories []Repository
	Versions     []Version
}

type GradleImportStyle

type GradleImportStyle struct{}

https://gradle.org

func (GradleImportStyle) Apply

func (g GradleImportStyle) Apply(artifact Artifact, version Version) string

type GrapeImportStyle

type GrapeImportStyle struct{}

http://docs.groovy-lang.org/latest/html/documentation/grape.html

func (GrapeImportStyle) Apply

func (g GrapeImportStyle) Apply(artifact Artifact, version Version) string

type ImportStyle

type ImportStyle interface {
	// Constructs the import string for the provided artifact and version
	Apply(artifact Artifact, version Version) string
}

Interface for creating import style for artifacts

type IvyImportStyle

type IvyImportStyle struct{}

https://ant.apache.org/ivy/

func (IvyImportStyle) Apply

func (i IvyImportStyle) Apply(artifact Artifact, version Version) string

type LeiningenImportStyle

type LeiningenImportStyle struct{}

https://leiningen.org

func (LeiningenImportStyle) Apply

func (l LeiningenImportStyle) Apply(artifact Artifact, version Version) string

type MavenImportStyle

type MavenImportStyle struct{}

https://maven.apache.org

func (MavenImportStyle) Apply

func (m MavenImportStyle) Apply(artifact Artifact, version Version) string

type Mvnrepository

type Mvnrepository struct {
	// contains filtered or unexported fields
}

Implementation for fetching artifacts from https://mvnrepository.com

func (*Mvnrepository) GetArtifactDetails

func (e *Mvnrepository) GetArtifactDetails(group string, id string) Details

func (*Mvnrepository) Init

func (e *Mvnrepository) Init(url string)

func (*Mvnrepository) SearchArtifacts

func (e *Mvnrepository) SearchArtifacts(q string, page int) SearchResults

type Repository

type Repository struct {
	Name string
	Url  string
}

type SbtImportStyle

type SbtImportStyle struct{}

https://www.scala-sbt.org

func (SbtImportStyle) Apply

func (s SbtImportStyle) Apply(artifact Artifact, version Version) string

type SearchResults

type SearchResults struct {
	Total     int
	Page      int
	Artifacts []Artifact
}

type Version

type Version struct {
	Value      string
	Repository Repository
	Date       string
}

Directories

Path Synopsis
cli
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL