Skip to content

Commit ab09413

Browse files
authored
chore: add comments for all packages (#350)
Co-authored-by: rick <[email protected]>
1 parent ba52e6c commit ab09413

File tree

21 files changed

+55
-0
lines changed

21 files changed

+55
-0
lines changed

cmd/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package cmd provides the CLI commands
2+
package cmd

pkg/common/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package common provides some common functions for the whole project.
2+
package common

pkg/compress/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package compress provides the compress and uncompress functions.
2+
package compress

pkg/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Package pkg provides the features to interal and external users.
2+
// All CLI related logics should not be in this package.
3+
package pkg

pkg/exec/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Package exec is the wrapper of os/exec package.
2+
// The main purpose of this package is to make unit test be easier.
3+
package exec

pkg/installer/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package installer is the core part of the software package installation.
2+
package installer

pkg/log/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Package log provides the core logger functions.
2+
// Basically, this is a wrapper of log.Logger
3+
package log

pkg/net/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package net provides the core download functions
2+
package net

pkg/os/apk/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Package apk provides the common functions to install a package via apk.
2+
// See also https://wiki.alpinelinux.org/wiki/Alpine_Package_Keeper.
3+
package apk

pkg/os/apt/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Package apt provides the common functions to install a package via apt.
2+
// See also https://en.wikipedia.org/wiki/APT_(software).
3+
package apt

pkg/os/brew/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Package brew provides the common functions to install a package via brew.
2+
// See also https://brew.sh/.
3+
package brew

pkg/os/core/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package core provides the core structs about the os-related package manager.
2+
package core

pkg/os/dnf/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Package dnf provides the common function of dnf package manager.
2+
// See also https://en.wikipedia.org/wiki/DNF_(software).
3+
package dnf

pkg/os/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Package os provides a generic installer for all platforms.
2+
// See the different native packages in the sub-packages, such as: apt, apk, brew etc.
3+
package os

pkg/os/docker/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package docker provides the way to install a package via docker CLI.
2+
package docker

pkg/os/fake/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package fake provides functions for unit test.
2+
package fake

pkg/os/generic/doc.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Package generic provides the generic packge installation.
2+
// It does not care about the real package mananger. Because
3+
// It will accept arbitrary command line.
4+
package generic

pkg/os/npm/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Package npm provides the common usage of npm.
2+
// See also https://www.npmjs.com/.
3+
package npm

pkg/os/snap/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Package snap provides the common usage of snap package manager.
2+
// See also https://snapcraft.io/.
3+
package snap

pkg/os/yum/doc.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Package yum provides the common usage of yum package manager.
2+
// See also https://en.wikipedia.org/wiki/Yum_(software).
3+
package yum

pkg/version/doc.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Package version provides the functions which related to version parse.
2+
package version

0 commit comments

Comments
 (0)