{"modulePath":"github.com/slackapi/slack-cli","version":"v0.0.0-20261203175310-63d04e137610","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package create\n\n## Variables\n\n```go\nvar Adjectives = []string{\n\t\"admiring\",\n\t\"adoring\",\n\t\"affectionate\",\n\t\"amazing\",\n\t\"awesome\",\n\t\"beautiful\",\n\t\"blissful\",\n\t\"bold\",\n\t\"brave\",\n\t\"busy\",\n\t\"charming\",\n\t\"clever\",\n\t\"cool\",\n\t\"compassionate\",\n\t\"competent\",\n\t\"confident\",\n\t\"dazzling\",\n\t\"determined\",\n\t\"distracted\",\n\t\"dreamy\",\n\t\"eager\",\n\t\"ecstatic\",\n\t\"elastic\",\n\t\"elated\",\n\t\"elegant\",\n\t\"eloquent\",\n\t\"epic\",\n\t\"exciting\",\n\t\"fervent\",\n\t\"festive\",\n\t\"flamboyant\",\n\t\"focused\",\n\t\"friendly\",\n\t\"frosty\",\n\t\"funny\",\n\t\"gallant\",\n\t\"gifted\",\n\t\"goofy\",\n\t\"gracious\",\n\t\"great\",\n\t\"happy\",\n\t\"hardcore\",\n\t\"heuristic\",\n\t\"hopeful\",\n\t\"hungry\",\n\t\"infallible\",\n\t\"inspiring\",\n\t\"interesting\",\n\t\"intelligent\",\n\t\"jolly\",\n\t\"jovial\",\n\t\"keen\",\n\t\"kind\",\n\t\"laughing\",\n\t\"loving\",\n\t\"lucid\",\n\t\"magical\",\n\t\"mystifying\",\n\t\"modest\",\n\t\"musing\",\n\t\"nervous\",\n\t\"nice\",\n\t\"nifty\",\n\t\"nostalgic\",\n\t\"objective\",\n\t\"optimistic\",\n\t\"peaceful\",\n\t\"pensive\",\n\t\"practical\",\n\t\"priceless\",\n\t\"quirky\",\n\t\"quizzical\",\n\t\"recursing\",\n\t\"relaxed\",\n\t\"reverent\",\n\t\"romantic\",\n\t\"serene\",\n\t\"sharp\",\n\t\"silly\",\n\t\"sleepy\",\n\t\"stoic\",\n\t\"strange\",\n\t\"sweet\",\n\t\"tender\",\n\t\"trusting\",\n\t\"unruffled\",\n\t\"upbeat\",\n\t\"vibrant\",\n\t\"vigilant\",\n\t\"vigorous\",\n\t\"wizardly\",\n\t\"wonderful\",\n\t\"xenodochial\",\n\t\"youthful\",\n\t\"zealous\",\n\t\"zen\",\n}\n```\n\n```go\nvar Animals = []string{\n\t\"aardvark\",\n\t\"alligator\",\n\t\"alpaca\",\n\t\"antelope\",\n\t\"anteater\",\n\t\"armadillo\",\n\t\"badger\",\n\t\"bat\",\n\t\"beaver\",\n\t\"bird\",\n\t\"bison\",\n\t\"bear\",\n\t\"boar\",\n\t\"buffalo\",\n\t\"bull\",\n\t\"camel\",\n\t\"capybara\",\n\t\"cat\",\n\t\"chipmunk\",\n\t\"cow\",\n\t\"coyote\",\n\t\"crocodile\",\n\t\"deer\",\n\t\"dog\",\n\t\"dolphin\",\n\t\"donkey\",\n\t\"dormouse\",\n\t\"elephant\",\n\t\"elk\",\n\t\"ferret\",\n\t\"fish\",\n\t\"fox\",\n\t\"frog\",\n\t\"gazelle\",\n\t\"gecko\",\n\t\"giraffe\",\n\t\"goat\",\n\t\"gopher\",\n\t\"gorilla\",\n\t\"groundhog\",\n\t\"horse\",\n\t\"iguana\",\n\t\"insect\",\n\t\"jaguar\",\n\t\"jellyfish\",\n\t\"kangaroo\",\n\t\"koala\",\n\t\"lamb\",\n\t\"lemur\",\n\t\"lion\",\n\t\"manatee\",\n\t\"meerkat\",\n\t\"mink\",\n\t\"mole\",\n\t\"moose\",\n\t\"mouse\",\n\t\"mule\",\n\t\"narwhal\",\n\t\"octopus\",\n\t\"opossum\",\n\t\"orangutan\",\n\t\"orca\",\n\t\"otter\",\n\t\"ox\",\n\t\"panda\",\n\t\"panther\",\n\t\"panda\",\n\t\"platypus\",\n\t\"porcupine\",\n\t\"puma\",\n\t\"rabbit\",\n\t\"rat\",\n\t\"ray\",\n\t\"reindeer\",\n\t\"rhino\",\n\t\"salamander\",\n\t\"seal\",\n\t\"shark\",\n\t\"sheep\",\n\t\"skunk\",\n\t\"sloth\",\n\t\"squirrel\",\n\t\"tiger\",\n\t\"tortoise\",\n\t\"turtle\",\n\t\"walrus\",\n\t\"weasel\",\n\t\"whale\",\n\t\"wildcat\",\n\t\"wolf\",\n\t\"zebra\",\n}\n```\n\n```go\nvar GetSampleRepos = func(client Sampler) ([]GithubRepo, error) {\n\trepos, err := getSampleReposFromSlack(client)\n\tif err != nil || len(repos) == 0 {\n\t\trepos, err = getSampleReposFromGitHub(client)\n\t\tif err != nil {\n\t\t\treturn []GithubRepo{}, slackerror.Wrap(err, slackerror.ErrSampleCreate)\n\t\t}\n\t}\n\treturn repos, nil\n}\n```\nGetSampleRepos requests a list of samples from Slack API and falls back to the GitHub API\n\n## Functions\n\n```go\nfunc Create(ctx context.Context, clients *shared.ClientFactory, createArgs CreateArgs) (appDirPath string, err error)\n```\nCreate will create a new Slack app on the file system and app manifest on the Slack API.\n\n```go\nfunc InstallProjectDependencies(\n\tctx context.Context,\n\tclients *shared.ClientFactory,\n\tprojectDirPath string,\n) []string\n```\nInstallProjectDependencies installs the project runtime dependencies or continues with next steps if that fails. You can specify the manifestSource for the project configuration file (default: ManifestSourceLocal)\n\n## Types\n\n```go\ntype CreateArgs struct {\n\tAppPath     string\n\tDisplayName string\n\tTemplate    Template\n\tGitBranch   string\n\tSubdir      string\n}\n```\nCreateArgs are the arguments passed into the Create function\n\n```go\ntype GithubRepo struct {\n\tID              int\n\tName            string\n\tFullName        string `json:\"full_name\"`\n\tDescription     string\n\tLanguage        string\n\tCreatedAt       string `json:\"created_at\"`\n\tStargazersCount int    `json:\"stargazers_count\"`\n}\n```\nGithubRepo is the single repository data structure\n\n```go\ntype Sampler interface {\n\tDo(req *http.Request) (res *http.Response, err error)\n}\n```\nSampler requests samples from various URLs\n\n```go\ntype SamplerMock struct {\n\tmock.Mock\n}\n```\n\n```go\nfunc NewMockSampler() *SamplerMock\n```\n\n```go\nfunc (s *SamplerMock) Do(req *http.Request) (*http.Response, error)\n```\n\n```go\ntype Template struct {\n\t// contains filtered or unexported fields\n}\n```\nTemplate describes the app template's path and protocol\n\n```go\nfunc ResolveTemplateURL(templateURL string) (Template, error)\n```\nResolveTemplateURL returns a git-clone compatible URL\n\n```go\nfunc (t Template) GetSubdir() string\n```\nGetSubdir returns the subdirectory within the repository\n\n```go\nfunc (t Template) GetTemplatePath() string\n```\nGetTemplatePath returns the path a template is located at\n\nTemplates on GitHub use an abbreviated format for concise outputs\n\n```go\nfunc (t Template) IsSample() bool\n```\nIsSample returns if the complete URL points to a sample template\n\n```go\nfunc (t Template) IsTrusted() bool\n```\nIsTrusted returns if the template is cloned from a trusted source\n\n```go\nfunc (t *Template) SetSubdir(subdir string)\n```\nSetSubdir sets the subdirectory within the repository\n\n","path":"github.com/slackapi/slack-cli/internal/pkg/create","name":"create","synopsis":"","isRedistributable":true}
