tools

package
v0.0.0-...-ca9423e Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package tools implements shared code for command-line tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inputs

func Inputs(readStdin bool) <-chan string

Inputs returns a channel that delivers the paths of inputs and is closed when no more are available. The non-flag arguments are read, and if readStdin is true each line of stdin is also read. The caller must fully drain the channel.

func OpenGraph

func OpenGraph(path string) (*graph.Graph, io.Closer, error)

OpenGraph opens a read-only view of the graph named by path. The caller must ensure the closer is closed when the graph is no longer in use.

Types

This section is empty.

Directories

Path Synopsis
Program crawldeps polls for repositories that need to be updated, and recomputes ranking data after updates are performed.
Program crawldeps polls for repositories that need to be updated, and recomputes ranking data after updates are performed.
Program csv export graph into a CSV in adjacency list format ready to load in Gephi.
Program csv export graph into a CSV in adjacency list format ready to load in Gephi.
Program depdomains scans a graph database and generates a histogram of dependencies by import path domain.
Program depdomains scans a graph database and generates a histogram of dependencies by import path domain.
Program depserver implements a JSON-RPC service giving access to the contents of a dependency graph.
Program depserver implements a JSON-RPC service giving access to the contents of a dependency graph.
Program dupfiles finds package source files with duplicate content.
Program dupfiles finds package source files with duplicate content.
Program findaffected locates packages in public repositories that need to be updated for breaking changes in a set of packages listed on the command line or inferred from the current working directory.
Program findaffected locates packages in public repositories that need to be updated for breaking changes in a set of packages listed on the command line or inferred from the current working directory.
Program missingdeps scans a graph database for keys that are listed as dependencies but whose dependencies are not known.
Program missingdeps scans a graph database for keys that are listed as dependencies but whose dependencies are not known.
Program quaddeps compiles a graph into RDF triples.
Program quaddeps compiles a graph into RDF triples.
Program readdeps reads the specified rows out of a graph.
Program readdeps reads the specified rows out of a graph.
Program resolvedeps resolves package repositories.
Program resolvedeps resolves package repositories.
Program revdeps lists the reverse dependencies of a package.
Program revdeps lists the reverse dependencies of a package.
Program transdeps lists the transitive closure of forward dependencies of a set of packages.
Program transdeps lists the transitive closure of forward dependencies of a set of packages.
Program updatedeps adds the specified repositories to a depserver.
Program updatedeps adds the specified repositories to a depserver.

Jump to

Keyboard shortcuts

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